* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

html {
    /* the viewport is the page's only scroller */
    overflow-x: hidden;
}

body {
    background: #f4f6f8;
    color: #1a1a2e;
    -webkit-text-size-adjust: 100%;
    /* clip, not hidden: 'hidden' on both html and body turns body into a second scroll container,
       and with overscroll-behavior:contain it swallowed mouse-wheel scrolling over most of the page */
    overflow-x: clip;
    overflow-wrap: break-word;
}








img, svg, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

:root {
    --primary: #1a237e;
    --primary-dark: #0d1442;
    --primary-light: #3949ab;
    --secondary: #1a4080;
    --secondary-light: #2255a4;
    --dark: #1a1a2e;
    --gray: #4a4a6a;
    --gray-light: #f5f5f7;
    --white: #ffffff;
    --border: #e8e8ed;
    --success: #2e7d32;
    --warning: #f57c00;
    --danger: #c62828;
    --info: #0d47a1;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
    --radius: 8px;
}


.page {
    display: none;
}

#dashboardPage { display: none; }


.watermark {
    position: absolute;
    font-size: 400px;
    color: rgba(26, 35, 126, 0.04);
    font-weight: bold;
    z-index: 1;
    user-select: none;
    




    pointer-events: none;
}


.welcome {
    font-size: 24px;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.platform {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.lcdjp {
    font-size: 56px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 16px;
}


.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.2s ease;
}


.back-btn {
    background: var(--gray);
    color: white;
}

.back-btn:hover {
    background: var(--dark);
}

.link {
    display: block;
    margin-top: 16px;
    color: var(--gray);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.link:hover {
    color: var(--primary);
}


.checkbox {
    width: auto;
}

.input-select {
    width: 100%;
    padding: 16px;
    margin: 10px 0;
    border: 1px solid #ccc;
    background: #eef4f3;
    font-size: 16px;
    border-radius: 8px;
}


.topbar {
    background: var(--secondary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: relative;
    flex-wrap: wrap;
}

.nav-left{
    display:flex;
    align-items:center;
    gap:20px;
    flex-wrap: wrap;
}


.admin-messages-label { display: inline; }


.nav-left a{
    color:white;
    text-decoration:none;
    font-size:16px;
    font-weight:500;
    cursor: pointer;
}


body.citizen-dashboard-mode .nav-left,
body.admin-dashboard-mode .nav-left {
    gap: 14px;
    flex-wrap: nowrap;
}

body.citizen-dashboard-mode .nav-left a,
body.admin-dashboard-mode .nav-left a {
    font-size: 14px;
    white-space: nowrap;
}

#citizenNavExtras, #adminNavExtras, #daNavExtras {
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
    gap: 14px;
}


@media (min-width: 768px) {
    #daHomeDashBtns {
        display: none !important;
    }
}


body.citizen-dashboard-mode .brand-subtitle {
    display: none;
}

.lcdjp-brand{
    display:flex;
    align-items:center;
    gap:10px;
}

.lcdjp-logo{
    width:45px;
    height:45px;
    object-fit:contain;
    border-radius:50%;
    background:white;
    padding:3px;
}

.brand-title{
    color:white;
    font-size:16px;
    font-weight:bold;
    line-height:1.1;
}

.brand-subtitle{
    color:white;
    font-size:11px;
}

#languageSelect {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    background: white;
    font-size: 14px;
}

.nav-right {
    display: flex;
    align-items: center;
    position: relative;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
}

.account-text {
    display: none;
    font-size: 14px;
    font-weight: 500;
}

.account-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    color: #333;
}

.account-menu div {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.account-menu div:hover {
    background: #f5f5f5;
}

.account-menu div:last-child {
    border-bottom: none;
}


#dashboardPage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    





    min-height: 100dvh;
}
.topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    flex-shrink: 0 !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.wrapper, .dashboard-layout {
    flex: 1;
    min-height: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background: transparent;
    z-index: 2147483647;
    pointer-events: none;
}
body.citizen-dashboard-mode::before,
body.lawyer-dashboard-mode::before,
body.admin-dashboard-mode::before {
    background: var(--primary);
}

#contentArea {
    overflow-y: auto;
}

.lawyer-dashboard-mode .topbar,
.citizen-dashboard-mode .topbar,
.admin-dashboard-mode .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}








@media (max-width: 767px) {
    .admin-dashboard-mode .topbar {
        background: var(--primary) !important;
    }
}












@media (min-width: 769px) {
    body.admin-dashboard-mode #navNotifBtn .nav-icon-svg {
        display: none;
    }
    body.admin-dashboard-mode .nav-right {
        gap: 16px;
    }
    body.admin-dashboard-mode .account-text {
        display: inline-block;
    }
}


.dashboard-layout {
    display: flex;
    flex-direction: row;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    background: #f5f5f5;
    border-right: 2px solid #ddd;
    padding: 20px;
}

.menu-title {
    font-weight: bold;
    padding: 12px 10px;
    cursor: pointer;
    color: var(--secondary);
    border-bottom: 1px solid #e0e0e0;
}

.submenu {
    display: none;
    margin-left: 15px;
    background: #fafafa;
    border-left: 2px solid var(--secondary);
}

.submenu div {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 15px;
}

.submenu div:hover {
    background: #e5eeff;
}

.content-area {
    flex: 1;
    padding: 20px;
    background: white;
    overflow-x: hidden;
}








@media (max-width: 768px) {
    body.admin-map-active #dashboardPage {
        height: 100vh;
        height: 100dvh; 





        overflow: hidden;
    }
    body.admin-map-active .dashboard-layout {
        overflow: hidden;
    }
    body.admin-map-active #contentArea {
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        









        flex: 1;
        min-height: 0;
    }
    

















    body.admin-map-active #adminDashboard {
        flex: 1;
        display: flex !important;
        flex-direction: column;
        min-height: 0;
    }
    body.admin-map-active #adminHomeContainer {
        flex: 1;
        display: flex !important;
        flex-direction: column;
        min-height: 0;
    }
    body.admin-map-active #adminMapView {
        flex: 1;
        





        height: auto !important;
        min-height: 0 !important;
    }
    

    body.admin-map-active #adminMapFooterNote {
        flex-shrink: 0;
    }
    body.admin-map-active #adminHomeContainer {
        margin: 0 !important;
    }
}






@media (min-width: 769px) {
    body.admin-dashboard-mode #dashboardPage {
        height: auto;
        overflow: visible;
    }
    body.admin-dashboard-mode .dashboard-layout {
        align-items: flex-start;
    }
    body.admin-dashboard-mode #contentArea {
        display: block;
        overflow-y: auto;
    }
    body.admin-dashboard-mode #adminHomeContainer {
        display: block;
        min-height: 0;
        margin-bottom: 0 !important;
    }
    body.admin-map-active #adminMapView {
        min-height: 300px;
    }
}


.footer{
    background:rgba(28,28,30,0.94);
    color:rgba(255,255,255,0.85);
    padding:30px 20px 20px;
    border-top:3px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid h3{
    color:#ffffff;
    font-size:18px;
    margin-bottom:10px;
}

.footer-grid p {
    font-size: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
}

.footer-grid p:hover {
    color: #ffffff;
    font-weight: 500;
}

.footer-grid a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.footer-grid a:hover {
    color: #ffffff;
    font-weight: 500;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.65);
    margin-top: 30px;
    padding-top: 20px;
    font-size: 13px;
}


.welcome-banner{
    display:flex;
    flex-direction: row;
    align-items:center;
    gap:30px;
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
}

.welcome-text{
    flex:1;
}

.welcome-text h1{
    color:var(--secondary);
    font-size:32px;
    margin-bottom:15px;
}

.welcome-text p{
    font-size:16px;
    line-height:1.6;
    margin-bottom:15px;
}

.welcome-image{
    flex:1;
}

.welcome-image img{
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:12px;
}

.services-title{
    text-align:center;
    font-size:28px;
    color:var(--secondary);
    font-weight:bold;
    margin-top: 25px;
    margin-bottom:25px;
}


.services-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap:18px;
    margin-bottom:30px;
}

.service-card{
    background:white;
    border-radius:15px;
    overflow: hidden;
    text-align:center;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
    transition:0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover{
    transform:translateY(-5px);
}

.service-image-wrapper {
    width: 100%;
    height: 140px;
    position: relative;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon{
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.service-card-content {
    padding: 30px 15px 20px 15px;
    flex-grow: 1;
}

.service-card h3{
    color:var(--secondary);
    margin-bottom:10px;
    font-size: 18px;
}

.service-card p{
    font-size:13px;
    line-height:1.5;
    color: #666;
}

.case-section{
    background:white;
    padding:20px;
    margin-top:20px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.lc-summary{
    display:flex;
    gap:15px;
    margin-bottom:20px;
    flex-wrap: wrap;
}

.summary-box{
    background:var(--secondary);
    color:white;
    padding:12px 20px;
    border-radius:8px;
    font-weight:bold;
    flex: 1;
    min-width: 120px;
    text-align: center;
}


.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    display: inline-block;
    white-space: nowrap;
}
.badge-pending { background: #ffeacc; color: #ff9800; }
.badge-resolved { background: #d4edda; color: #28a745; }
.badge-lawyer { background: #fff3cd; color: #856404; border: 1px solid #ffeeba;}
.badge-higher { background: #e2d2f3; color: #51115c; }


.notif-box {
    background: #eef4f3;
    padding: 15px;
    border-left: 5px solid var(--secondary);
    border-radius: 4px;
    margin-bottom: 12px;
}


.content-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}


.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


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

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 5px solid var(--secondary);
}

.stat-card h3 {
    font-size: 32px;
    margin: 0;
    color: var(--secondary);
}

.stat-card p {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}
.notification-card {
    display: flex;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.notification-icon {
    font-size: 24px;
    margin-right: 15px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 5px;
}

.notification-message {
    color: #333;
    line-height: 1.5;
}

.notification-date {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}

.case-card{
    background:#ffffff;
    border-radius:12px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    border-left:5px solid #007bff;
}

.case-card h3{
    margin:0 0 10px;
    color:#003366;
}

.case-card p{
    margin:6px 0;
    color:#444;
}

.doc-section{
    margin-top:15px;
}

.doc-btn{
    background:#f4f6f9;
    border:none;
    padding:10px 14px;
    border-radius:8px;
    margin:5px;
    cursor:pointer;
    transition:0.3s;
}

.doc-btn:hover{
    background:#dbeafe;
}

.approve-btn{
    background:#28a745;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;
    margin-top:15px;
}

.approve-btn:hover{
    background:#218838;
}

.reject-btn{
    background:#dc3545;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;
    margin-left:10px;
}

.reject-btn:hover{
    background:#c82333;
}

.admin-header{
    background:#003366;
    color:white;
    padding:20px;
    border-radius:12px;
    margin-bottom:20px;
}

.admin-stats{
    display:flex;
    gap:15px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.stat-box{
    flex:1;
    min-width:180px;
    background:white;
    padding:15px;
    border-radius:12px;
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
    text-align:center;
}

.stat-box h2{
    margin:0;
    color:#003366;
}

.stat-box p{
    margin-top:5px;
    color:#666;
}

.dashboard-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    background: #f5f5f5;
    border-right: 2px solid #ddd;
    padding: 20px;
}

.content-area {
    flex: 1;
    padding: 20px;
    background: white;
    overflow-x: hidden;
}
.submenu {
    display: none;
    padding: 12px 15px;
    background: #f9f9f9;
    border-left: 3px solid #2c3e50;
    animation: fadeIn 0.2s ease-in-out;
}


.submenu > div {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    transition: 0.2s;
}


.submenu > div:hover {
    background: #f1f5f9;
    transform: translateX(3px);
    cursor: pointer;
}


#adminSidebarMenu .admin-menu-item,
#adminSidebarMenu [id^='adminMenu_'] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


.admin-menu-item {
    transition: background 0.15s, border-left 0.15s;
    cursor: pointer;
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    border-left: 3px solid transparent;
    user-select: none;
}
.admin-menu-item:hover {
    background: #e5eeff;
    border-left-color: #7aa4d8;
}
.admin-menu-item.admin-active {
    background: #efe0f5;
    border-left: 4px solid var(--secondary) !important;
    color: var(--secondary);
    font-weight: bold;
    padding-left: 10px !important;
}


.submenu strong {
    display: block;
    font-size: 14px;
    color: #1f2d3d;
    margin-bottom: 5px;
}


.submenu p {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}


.specialization-item{
    padding:12px;
    margin-bottom:8px;
    border:1px solid #ddd;
    border-radius:6px;
    cursor:pointer;
    background:white;
}

.specialization-item:hover{
    background:#f5f5f5;
}


.content-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}














.search-content-modal {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}
.search-content-modal .modal-footer {
    display: none;
}
.search-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px 20px;
    -webkit-overflow-scrolling: touch;
}
.search-modal-intro {
    color: #666;
    font-size: 13px;
    margin-bottom: 14px;
}
.search-modal-input-wrap {
    position: sticky;
    top: -18px;
    margin: -18px -20px 14px;
    padding: 18px 20px 12px;
    background: white;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f1f5;
}
.search-modal-input-icon { color: #9ca3af; flex-shrink: 0; }
.search-modal-input {
    flex: 1;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #f8f9fb;
    min-width: 0;
}
.search-modal-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
}
.search-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    cursor: pointer;
    transition: background 0.15s;
}
.search-result-item:active { background: #eef2f9; }
.search-result-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8edf7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-result-text { flex: 1; min-width: 0; }
.search-result-text strong { display: block; font-size: 14px; color: #1a1a2e; }
.search-result-text p { margin: 2px 0 0; font-size: 12px; color: #777; }
.search-result-chevron { color: #b7bdca; flex-shrink: 0; }
.search-result-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.search-result-empty-icon { font-size: 28px; margin-bottom: 8px; }
.search-result-empty p { font-size: 13px; margin: 0; }


.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}


.location-suggestion-item:hover {
    background: #e5eeff !important;
}
#districtSuggestions::-webkit-scrollbar,
#caseLocationSearchResults::-webkit-scrollbar {
    width: 5px;
}
#districtSuggestions::-webkit-scrollbar-thumb,
#caseLocationSearchResults::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}
#caseLocationSearch:focus {
    border-color: var(--secondary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 64, 128, 0.15);
}
#districtSearch:focus {
    border-color: var(--secondary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 64, 128, 0.15);
}


#locationSection {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

#locationSection h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.input-select:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.7;
}
#countyContainer, #subCountyContainer, #parishContainer, #villageContainer {
    animation: fadeIn 0.3s ease-in-out;
}

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

#county_manual_container, #subCounty_manual_container, 
#parishLocation_manual_container, #villageLocation_manual_container {
    animation: fadeIn 0.3s ease-in-out;
}

#county_manual, #subCounty_manual, 
#parishLocation_manual, #villageLocation_manual {
    border-color: var(--secondary) !important;
    background: #f0f5ff !important;
}

#county_manual:focus, #subCounty_manual:focus, 
#parishLocation_manual:focus, #villageLocation_manual:focus {
    border-color: #0e2045 !important;
    box-shadow: 0 0 0 3px rgba(26, 64, 128, 0.2);
}


#performanceSearch:focus,
#performanceFilter:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 64, 128, 0.1);
}


#pdfExportContainer {
    display: none;
}

#pdfExportContainer[style*="display: block"] {
    display: block !important;
}


#pdfExportContainer .close-btn:hover {
    background: #0e2045 !important;
}


#reportPreviewContent {
    max-height: 400px;
    overflow-y: auto;
}


#statisticsContainer {
    display: none;
    width: 100%;
    padding: 20px;
    background: white;
    min-height: 80vh;
}

#statisticsContainer[style*="display: block"] {
    display: block !important;
}


#statisticsContainer:not([style*="display: block"]) {
    display: none !important;
}









#approvalContainer,
#lawyerManagementContainer,
#lawyerPerformanceContainer,
#pdfExportContainer {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}


.code-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.code-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 64, 128, 0.15);
}


.copy-btn:hover {
    background: #0e2045 !important;
}


#chatMobileBtn {
    display: none;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(26,64,128,0.45);
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}
#chatMobileBtn:hover { background: #1565c0; }


#chatContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#chatToggleBtn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 64, 128, 0.4);
}

#chatToggleBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(26, 64, 128, 0.6);
}


#adminChatList div:last-child {
    border-bottom: none !important;
}


.chat-message-sent {
    animation: slideInRightMsg 0.3s ease;
}

.chat-message-received {
    animation: slideInLeft 0.3s ease;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.unread-badge {
    animation: pulse 1.5s infinite;
}


.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.online {
    background: #28a745;
    box-shadow: 0 0 10px rgba(26, 64, 128, 0.4);
}

.status-dot.offline {
    background: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}
