/* Admin Layout Styles */
.admin-body {
    font-family: 'Noto Naskh Arabic', serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Top Navigation */
.admin-navbar {
    background: linear-gradient(135deg, #1F2839 0%, #2a3a4f 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand img {
    height: 40px;
}

.navbar-brand span {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.3rem;
    color: #B69D64;
    font-weight: 600;
}

.user-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.user-menu {
    position: relative;
    z-index: 1050;
}

.user-menu .dropdown-menu {
    z-index: 1060 !important;
    position: absolute !important;
}

.dropdown-menu {
    z-index: 1060 !important;
}

/* Mobile User Menu in Sidebar */
.mobile-user-menu {
    display: none;
    padding: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    background: #f8f9fa;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #1F2839;
    font-weight: 600;
}

.mobile-user-info i {
    font-size: 1.5rem;
    color: #B69D64;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1rem;
}

.mobile-menu-link:hover {
    background: white;
    color: #1F2839;
}

.mobile-menu-link i {
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .mobile-user-menu {
        display: block;
    }
    
    .user-menu {
        display: none;
    }
}

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: white;
    border-left: 1px solid #e5e7eb;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
    z-index: 999;
}

.sidebar-content {
    padding: 2rem 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.menu-item:focus {
    outline: none;
    box-shadow: none;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #1F2839;
    border-right-color: #B69D64;
}

.menu-item.active {
    background: #f0f8ff;
    color: #1F2839;
    border-right-color: #B69D64;
    font-weight: 600;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Dropdown Menu */
.menu-dropdown {
    position: relative;
}

.menu-dropdown button {
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    justify-content: space-between;
}

.menu-dropdown button:focus,
.menu-dropdown button:active,
.menu-dropdown button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    width: auto !important;
    margin-left: auto;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.submenu {
    background: #f8f9fa;
    border-right: 3px solid #e5e7eb;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 3rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.submenu-item:hover {
    background: #e9ecef;
    color: #1F2839;
}

.submenu-item.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.submenu-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

/* Admin Pages */
.admin-page {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.page-header {
    background: linear-gradient(135deg, #1F2839 0%, #2a3a4f 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header h1 i {
    color: #B69D64;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

.content-card {
    padding: 2rem;
}

.content-card.mb-3 {
    margin-bottom: 0.5rem !important;
    padding: 1rem;
}

.table {
    margin: 0;
    font-family: 'Noto Naskh Arabic', serif;
}

.table th {
    background: #f8f9fa;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #1F2839;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #1F2839;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Noto Naskh Arabic', serif;
}

.form-control:focus {
    border-color: #B69D64;
    box-shadow: 0 0 0 2px rgba(182, 157, 100, 0.2);
    outline: none;
}

.form-actions {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
}

/* Main Content */
.admin-main {
    margin-right: 280px;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.main-content {
    padding: 2rem;
}

/* Dashboard Content */
.admin-dashboard {
    background: transparent;
}

.admin-header {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0;
}

.admin-welcome h1 {
    font-family: 'Aref Ruqaa', serif;
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    color: #1F2839;
}

.admin-welcome p {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

/* Statistics Section */
.admin-stats {
    margin-bottom: 3rem;
}

.admin-stats .container {
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-icon.personal { background: #B69D64; }
.stat-icon.corporate { background: #1976d2; }
.stat-icon.cases { background: #2e7d32; }
.stat-icon.appointments { background: #f57c00; }
.stat-icon.consultations { background: #7b1fa2; }
.stat-icon.contracts { background: #d32f2f; }

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: #1F2839;
    font-family: 'Merriweather', serif;
}

.stat-content p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 1rem;
}

/* Main Sections */
.admin-sections {
    margin-bottom: 4rem;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.section-info h3 {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: #1F2839;
}

.section-info p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.section-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #F5F5EF;
    border-radius: 12px;
}

.mini-stat {
    text-align: center;
    flex: 1;
}

.mini-stat .number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #B69D64;
    font-family: 'Merriweather', serif;
}

.mini-stat .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.section-actions {
    text-align: center;
}

.section-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    font-weight: 500;
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Noto Naskh Arabic', serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.alert .btn-close {
    margin-right: auto;
    margin-left: 1rem;
}

.alert ul {
    margin: 0;
    padding-right: 1.5rem;
}

.alert ul li {
    margin-bottom: 0.25rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #B69D64;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #9d8454;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .admin-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-right: 0;
    }
    
    .navbar-content {
        padding: 0 1rem;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .admin-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-welcome h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Notification Bell */
.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
}

.notification-btn:hover {
    color: #B69D64;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-dropdown {
    width: 350px;
    max-height: 500px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
}

.notification-header {
    background: linear-gradient(135deg, #1F2839 0%, #2d3e50 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
}

.mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f8ff;
}

.notification-item.unread .notification-message {
    font-weight: 600;
}

.notification-footer {
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #B69D64 0%, #a08a58 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-message {
    margin: 0 0 0.25rem 0;
    color: #1F2839;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #999;
}

.empty-notifications {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-notifications i {
    font-size: 3rem;
    color: #B69D64;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-notifications p {
    margin: 0;
}

/* Client Details Page */
.content-card .nav-tabs {
    padding-top: 2rem;
}

.nav-tabs .nav-link {
    color: #c9a96e !important;
}

.nav-tabs .nav-link.active {
    color: #2c3e50 !important;
    border-bottom-color: #c9a96e !important;
}

.nav-tabs .nav-link:hover {
    color: #2c3e50 !important;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
}

.card-header h5 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.card-header i {
    color: #c9a96e;
    margin-left: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.client-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #c9a96e;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.info-label i {
    color: #c9a96e;
    width: 16px;
    margin-left: 0.5rem;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

.assigned-admins .info-label {
    font-size: 0.9rem;
    color: #555;
}

.admin-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-badges .badge {
    background-color: #c9a96e !important;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Corporate Details Page */
.client-info-bar-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.info-item-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
}

.info-item-inline i {
    color: #B69D64;
    font-size: 0.9rem;
}

.info-item-inline .badge {
    background-color: #B69D64 !important;
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.nav-pills {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-tabs .nav-link i,
.nav-pills .nav-link i {
    margin-left: 0.5rem;
}

.nav-pills .nav-link {
    color: #1F2839 !important;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    background: #e9ecef;
    border-color: #B69D64;
}

.nav-pills .nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, #B69D64 0%, #a08a58 100%) !important;
    border-color: #B69D64 !important;
}

.service-content {
    padding: 1.5rem;
}

.service-content h6 {
    color: #1F2839;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content h6 i {
    color: #B69D64;
    margin-left: 0.5rem;
}

/* Case Modal Styles */
.case-modal-dialog {
    max-width: 95vw;
}

.case-modal-content {
    max-height: 90vh;
}

.case-modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 1.5rem;
    padding-right: 8rem;
}

#addCaseModal .modal-dialog {
    transform: none !important;
}

#addCaseModal .modal-body {
    overflow: visible !important;
}

#addCaseModal .modal-content {
    overflow: visible !important;
}

#addCaseModal select.form-control {
    text-align: right;
}

#addCaseModal .row {
    margin-right: 0;
    margin-left: 0;
}

/* Create Case Page */
.content-card form {
    padding-right: 8rem;
}

.content-card select.form-control {
    text-align: right;
}

.content-card .row {
    margin-right: 0;
    margin-left: 0;
}

/* Responsive Styles */
.mobile-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-card-title {
    font-weight: 600;
    color: #1F2839;
    margin-bottom: 0.75rem;
}

.mobile-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.mobile-card-label {
    color: #666;
}

.mobile-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-card-actions .btn {
    flex: 1;
}

@media (max-width: 768px) {
    .case-modal-dialog {
        max-width: 95vw;
        margin: 0.5rem;
    }
    
    .case-modal-body {
        padding: 1rem;
        padding-right: 1.5rem;
    }
    
    .content-card form {
        padding: 1rem;
        padding-right: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .client-info-bar-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #B69D64 #f0f0f0;
    }
    
    .nav-tabs::-webkit-scrollbar {
        height: 8px;
    }
    
    .content-card .nav-tabs {
        padding-bottom: 1.25rem;
    }
    
    .nav-tabs::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .nav-tabs::-webkit-scrollbar-thumb {
        background: #B69D64;
        border-radius: 4px;
    }
    
    .nav-tabs::-webkit-scrollbar-thumb:hover {
        background: #a08a58;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        display: inline-flex;
        align-items: center;
    }
    
    .nav-pills {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #B69D64 #f0f0f0;
    }
    
    .nav-pills::-webkit-scrollbar {
        height: 8px;
    }
    
    .service-content .nav-pills {
        padding-bottom: 1.25rem;
    }
    
    .content-card .nav-pills {
        padding-bottom: 1.25rem;
    }
    
    .nav-pills::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .nav-pills::-webkit-scrollbar-thumb {
        background: #B69D64;
        border-radius: 4px;
    }
    
    .nav-pills::-webkit-scrollbar-thumb:hover {
        background: #a08a58;
    }
    
    .nav-pills .nav-link {
        white-space: nowrap;
        font-size: 0.8rem;
        display: inline-flex;
        align-items: center;
    }
    
    .col-md-4, .col-md-8 {
        width: 100%;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    iframe {
        height: 500px !important;
    }
    
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}


/* Investigation Details Page */
.investigation-header { 
    background: linear-gradient(135deg, #1F2839 0%, #2d3e50 100%); 
    color: white; 
    padding: 1.5rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
}

.investigation-title { 
    font-size: 1.3rem; 
    font-weight: 600; 
    margin-bottom: 0.75rem; 
}

.desktop-layout { 
    display: flex; 
    height: calc(100vh - 110px); 
    margin-top: 110px; 
}

.chat-section { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.chat-container { 
    flex: 1; 
    overflow-y: auto; 
    padding: 1.5rem; 
    background: #f8f9fa; 
}

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

.chat-message { 
    display: flex; 
    margin-bottom: 1.5rem; 
    animation: fadeIn 0.3s; 
}

.message-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #B69D64 0%, #a08a58 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-weight: 600; 
    margin-left: 1rem; 
    flex-shrink: 0; 
}

.message-content { 
    flex: 1; 
}

.message-header { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    margin-bottom: 0.5rem; 
}

.message-author { 
    font-weight: 600; 
    color: #1F2839; 
}

.message-time { 
    font-size: 0.85rem; 
    color: #999; 
}

.message-bubble { 
    background: white; 
    padding: 1rem; 
    border-radius: 12px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    border-right: 3px solid #B69D64; 
}

.message-text { 
    color: #333; 
    line-height: 1.6; 
    margin-bottom: 0.5rem; 
}

.message-attachment { 
    margin-top: 0.75rem; 
    padding: 0.75rem; 
    background: #f8f9fa; 
    border-radius: 8px; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    text-decoration: none; 
    color: #1F2839; 
    transition: all 0.3s; 
}

.message-attachment:hover { 
    background: #e9ecef; 
    color: #B69D64; 
}

.message-attachment i { 
    color: #B69D64; 
}

.reply-form { 
    background: white; 
    padding: 1.5rem; 
    border-top: 1px solid #e0e0e0; 
}

.btn-attach { 
    background: #f8f9fa; 
    border: 1px solid #dee2e6; 
    color: #6c757d; 
    padding: 0.6rem 1rem; 
    border-radius: 50%; 
    cursor: pointer; 
    width: 42px; 
    height: 42px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s; 
}

.btn-attach:hover { 
    background: #e9ecef; 
}

.btn-send { 
    background: linear-gradient(135deg, #B69D64 0%, #a08a58 100%); 
    color: white; 
    border: none; 
    padding: 0.6rem 1.5rem; 
    border-radius: 20px; 
    font-weight: 500; 
    transition: all 0.3s; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.btn-send:hover { 
    background: linear-gradient(135deg, #a08a58 0%, #8f7a4d 100%); 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(182, 157, 100, 0.3); 
}

.file-preview { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
    margin-top: 0.5rem; 
}

.file-item { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.5rem 0.75rem; 
    background: #f8f9fa; 
    border: 1px solid #dee2e6; 
    border-radius: 8px; 
    font-size: 0.85rem; 
}

.file-item i { 
    color: #B69D64; 
}

.file-remove { 
    background: none; 
    border: none; 
    color: #dc3545; 
    cursor: pointer; 
    padding: 0; 
    margin-left: 0.25rem; 
}

.file-remove:hover { 
    color: #c82333; 
}

.tabs-section { 
    width: 300px; 
    background: white; 
    border-left: 1px solid #e0e0e0; 
    overflow-y: auto; 
    padding: 1rem; 
    padding-top: 1.5rem; 
}

.desktop-tabs { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
}

.desktop-tab-item { 
    padding: 1rem; 
    background: #f8f9fa; 
    border-radius: 8px; 
    text-decoration: none; 
    color: #333; 
    transition: all 0.3s; 
    border-right: 3px solid transparent; 
    cursor: pointer; 
}

.desktop-tab-item:hover { 
    background: #e9ecef; 
}

.desktop-tab-item.active { 
    background: linear-gradient(135deg, #B69D64 0%, #a08a58 100%); 
    color: white; 
    border-right-color: #8b7548; 
}

.tab-title { 
    font-weight: 600; 
    color: #1F2839; 
    margin-bottom: 0.5rem; 
    font-size: 0.95rem; 
}

.desktop-tab-item.active .tab-title { 
    color: white; 
}

.tab-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.85rem; 
    margin-bottom: 0.5rem; 
}

.tab-date { 
    color: #666; 
}

.desktop-tab-item.active .tab-date { 
    color: rgba(255,255,255,0.8); 
}

.tab-status { 
    padding: 0.25rem 0.75rem; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 500; 
}

.status-pending { 
    background: #fff3cd; 
    color: #856404; 
}

.status-in_progress { 
    background: #cfe2ff; 
    color: #084298; 
}

.status-completed { 
    background: #d1e7dd; 
    color: #0f5132; 
}

.tab-status-select { 
    width: 100%; 
    padding: 0.5rem; 
    border: 1px solid #dee2e6; 
    border-radius: 6px; 
    font-size: 0.85rem; 
    background: white; 
    color: #333; 
    appearance: none; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
}

.tab-status-select:focus { 
    outline: none; 
    border-color: #B69D64; 
}

.tab-status-select option { 
    background: white !important; 
    color: #333 !important; 
}

.tab-status-select option:checked { 
    background: #f8f9fa !important; 
}

.desktop-tab-item.active .tab-status-select { 
    background: rgba(255,255,255,0.2); 
    color: white; 
    border-color: rgba(255,255,255,0.3); 
}

.desktop-tab-item.active .tab-status-select option { 
    background: white !important; 
    color: #333 !important; 
}

.mobile-tabs { 
    display: none; 
}

@media (max-width: 768px) {
    .investigation-header { 
        padding: 0.6rem 1rem; 
    }
    
    .investigation-title { 
        font-size: 1rem; 
        margin-bottom: 0; 
        font-weight: 500; 
    }
    
    .investigation-info { 
        display: none !important; 
    }
    
    .desktop-layout { 
        display: block; 
        height: auto; 
    }
    
    .chat-section { 
        flex: none; 
    }
    
    .tabs-section { 
        display: none; 
    }
    
    .mobile-tabs { 
        display: flex; 
        position: fixed; 
        top: 50px; 
        left: 0; 
        right: 0; 
        background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%); 
        z-index: 999; 
        overflow-x: auto; 
        border-bottom: 2px solid #e0e0e0; 
        padding: 0.75rem 1rem; 
        gap: 0.75rem; 
        scrollbar-width: none; 
    }
    
    .mobile-tabs::-webkit-scrollbar { 
        display: none; 
    }
    
    .tab-item { 
        padding: 0.6rem 1.25rem; 
        background: white; 
        border-radius: 20px; 
        white-space: nowrap; 
        font-size: 0.875rem; 
        color: #666; 
        text-decoration: none; 
        border: 1px solid #e0e0e0; 
    }
    
    .tab-item.active { 
        background: linear-gradient(135deg, #B69D64 0%, #a08a58 100%); 
        color: white; 
        font-weight: 500; 
        border-color: #B69D64; 
    }
    
    .chat-container { 
        height: calc(100vh - 170px); 
        padding: 0.5rem; 
        padding-bottom: 5rem; 
        margin-top: 110px; 
    }
    
    .chat-message { 
        margin-bottom: 0.5rem; 
        flex-direction: column; 
        align-items: flex-start; 
    }
    
    .message-avatar { 
        display: none; 
    }
    
    .message-content { 
        max-width: 85%; 
        width: fit-content; 
    }
    
    .message-header { 
        padding: 0; 
        border: none; 
        margin-bottom: 0.25rem; 
    }
    
    .message-bubble { 
        padding: 0; 
    }
    
    .message-text { 
        padding: 0.6rem 0.85rem; 
        font-size: 0.9rem; 
    }
    
    .reply-form { 
        padding: 0.6rem; 
        position: fixed; 
        bottom: 0; 
        left: 0; 
        right: 0; 
        z-index: 1000; 
    }
    
    .row.g-3 { 
        display: flex; 
        align-items: center; 
        gap: 0.5rem; 
        margin: 0; 
    }
    
    .col-md-8 { 
        flex: 1; 
        padding: 0; 
    }
    
    .col-md-4 { 
        padding: 0; 
        display: flex; 
        gap: 0.5rem; 
        width: auto; 
    }
    
    input[type="file"] { 
        display: none; 
    }
    
    .btn-attach { 
        background: transparent; 
        border: none; 
        color: #B69D64; 
        font-size: 1.3rem; 
        padding: 0; 
        width: 44px; 
        height: 44px; 
    }
    
    .btn-send { 
        border-radius: 50%; 
        width: 42px; 
        height: 42px; 
        padding: 0; 
        min-width: 42px; 
    }
    
    .btn-send i { 
        margin: 0; 
        font-size: 1rem; 
    }
}
