/* Custom CSS for Law Firm Management System */

/* Bootstrap overrides and custom styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-dark .navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.8);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    border-radius: 10px 10px 0 0 !important;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(44, 62, 80, 0.05);
}

/* Dashboard Statistics Cards */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-dismissible .btn-close {
    padding: 0.5rem 0.75rem;
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
    border-radius: 0.35rem;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Footer */
.footer {
    background-color: var(--light-color) !important;
    border-top: 1px solid #e3e6f0;
    margin-top: auto;
}

/* Footer Background Image Fix - Maximum Override */
.main-footer__bg,
footer .main-footer__bg,
.main-footer .main-footer__bg,
.main-footer .main-footer__bg[style*="background-image"] {
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
    opacity: 0.3 !important;
    z-index: -1 !important;
    min-height: 200px !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure footer content is above background */
.main-footer .main-footer__top,
.main-footer .container,
.main-footer .main-footer__info {
    position: relative !important;
    z-index: 10 !important;
}

/* Blog Pagination Styles */
.post-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 0;
}

.post-pagination li {
    list-style: none;
    margin: 0;
}

.post-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.post-pagination li a:hover {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.post-pagination li a.active {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

.post-pagination li a i {
    font-size: 12px;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .post-pagination {
        gap: 4px;
        margin-top: 30px;
    }
    
    .post-pagination li a {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Empty Category Message Styles */
.empty-category-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
    border: 2px dashed #e0e0e0;
}

.empty-category-icon {
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-category-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.empty-category-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-category-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-category-actions .btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.empty-category-actions .btn-primary {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
}

.empty-category-actions .btn-primary:hover {
    background-color: #b8941f;
    border-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.empty-category-actions .btn-outline-primary {
    background-color: transparent;
    border-color: #d4af37;
    color: #d4af37;
}

.empty-category-actions .btn-outline-primary:hover {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.empty-category-actions .btn i {
    font-size: 0.9rem;
}

/* Responsive empty category message */
@media (max-width: 768px) {
    .empty-category-message {
        padding: 40px 15px;
        margin: 20px 0;
    }
    
    .empty-category-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .empty-category-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .empty-category-text {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .empty-category-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-category-actions .btn {
        width: 200px;
        justify-content: center;
    }
}

/* Tag Styles */
.sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.sidebar__tags a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sidebar__tags a:hover {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.sidebar__tags a.active {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* Responsive tag styles */
@media (max-width: 768px) {
    .sidebar__tags {
        gap: 6px;
    }
    
    .sidebar__tags a {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* About Page and Lawyer Details Layout Adjustments */
@media (max-width: 1199px) {
    .about-one .col-xl-8 {
        flex: 0 0 70%;
        max-width: 70%;
    }
    
    .about-one .col-xl-4 {
        flex: 0 0 30%;
        max-width: 30%;
    }
}

@media (max-width: 991px) {
    .about-one .col-xl-8,
    .about-one .col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about-one__image {
        margin-top: 30px;
        text-align: center;
    }
    
    .about-one__image img {
        max-width: 400px;
        width: 100%;
        height: auto;
    }
}

/* Lawyer Details Specific Adjustments */
.lawyer-details .about-one__image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .lawyer-details .about-one__image img {
        max-width: 300px;
    }
}

/* Force background image to show with maximum specificity */
.main-footer .main-footer__bg[style*="background-image"],
footer.main-footer .main-footer__bg[style*="background-image"] {
    background-image: inherit !important;
    opacity: 0.3 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom utilities */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15) !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Custom status indicators */
.status-active {
    color: var(--success-color);
}

.status-inactive {
    color: #6c757d;
}

/* Table action buttons */
.btn-group .btn {
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Print styles */
@media print {
    .navbar, .btn, .card-header, .alert {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .table {
        font-size: 12px;
    }
}
