:root {
    --lawyer-primary: #1D4ED8;
    --lawyer-primary-light: #DBEAFE;
    --lawyer-secondary: #323D4E; /* Darker blue/grey for sidebar from PNG */
    --lawyer-bg: #F8FAFC;
    --lawyer-card-bg: #FFFFFF;
    --lawyer-text: #1E293B;
    --lawyer-text-muted: #64748B;
    --lawyer-white: #FFFFFF;
    --lawyer-border: #E2E8F0;
    --lawyer-notification-red: #EF4444;
    --lawyer-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    --lawyer-sidebar-w: 260px;
    --lawyer-sidebar-collapsed-w: 80px;
}

body.lawyer-dashboard {
    margin: 0;
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--lawyer-bg);
    color: var(--lawyer-text);
    display: flex;
    min-height: 100vh;
    padding: 0; /* Removing padding to allow full-height sidebar */
    -webkit-font-smoothing: antialiased;
}

/* Sidebar */
.lawyer-sidebar {
    width: var(--lawyer-sidebar-w);
    background-color: var(--lawyer-secondary);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top-right-radius: 32px;
    border-bottom-right-radius: 32px;
    overflow: hidden;
    white-space: nowrap;
    position: sticky;
    top: 0;
    height: 100vh;
}

.lawyer-sidebar.collapsed {
    width: 80px;
}

.lawyer-sidebar-collapse {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lawyer-sidebar-collapse:hover {
    color: rgba(255, 255, 255, 1);
}

.lawyer-sidebar.collapsed .lawyer-sidebar-collapse i {
    transform: rotate(180deg);
}

.lawyer-sidebar.collapsed .lawyer-sidebar-collapse span,
.lawyer-sidebar.collapsed .lawyer-menu-link span {
    opacity: 0;
    visibility: hidden;
    width: 0;
    display: none;
}

.lawyer-sidebar.collapsed .lawyer-sidebar-collapse,
.lawyer-sidebar.collapsed .lawyer-menu-link {
    justify-content: center;
    padding: 16px 0;
    margin-left: 0;
    margin-right: 0;
}

.lawyer-sidebar.collapsed .lawyer-menu-link {
    width: 48px;
    margin: 4px auto;
}

.lawyer-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 4px 16px;
    border-radius: 12px;
    font-weight: 500;
}

.lawyer-menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.lawyer-menu-link.active {
    background: var(--lawyer-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.lawyer-menu-link i {
    font-size: 18px;
}

/* Main Content */
.lawyer-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
}

.lawyer-header {
    height: 80px;
    background-color: var(--lawyer-white);
    border-bottom: 1px solid var(--lawyer-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin: 10px;
    border-radius: 20px;
}

.lawyer-header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.lawyer-logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lawyer-logo-header img {
    height: 32px;
    width: auto;
}

.lawyer-logo-header .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--lawyer-secondary);
    font-family: 'Outfit', sans-serif;
}

.lawyer-search {
    position: relative;
    width: 300px;
}

.lawyer-search input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    border-radius: 12px;
    border: 1px solid var(--lawyer-border);
    background: var(--lawyer-bg);
    font-size: 14px;
    transition: all 0.3s ease;
}

.lawyer-search input:focus {
    outline: none;
    border-color: var(--lawyer-primary);
    background: white;
    box-shadow: var(--lawyer-shadow);
}

.lawyer-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lawyer-text-muted);
    width: 18px;
    height: 18px;
}

.lawyer-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--lawyer-text-muted);
    transition: color 0.2s ease;
}

.notification-bell:hover {
    color: var(--lawyer-primary);
}

.notification-bell i {
    width: 22px;
    height: 22px;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--lawyer-notification-red);
    border: 2px solid white;
    border-radius: 50%;
}

.lawyer-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid var(--lawyer-border);
    padding-left: 30px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--lawyer-text);
}

.user-role {
    font-size: 11px;
    color: var(--lawyer-text-muted);
    text-transform: capitalize;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.lawyer-content {
    padding: 20px;
}

/* Dashboard Cards */
.lawyer-card {
    background: var(--lawyer-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 24px;;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Modal */
.lawyer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000;
    backdrop-filter: blur(4px);
    /* centering done via inner wrapper — fadeIn sets display:block */
}

/* When jQuery fadeIn sets display:block, override to flex for centering */
.lawyer-modal-overlay[style*="display: block"],
.lawyer-modal-overlay[style*="display:block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.lawyer-modal {
    background: white;
    border-radius: 20px;
    width: 680px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    position: relative;
    margin: auto;
}

.lawyer-modal-content {
    overflow-y: auto;
    padding: 24px 28px;
    flex: 1;
}

.lawyer-modal-header {
    padding: 20px 28px 0;
    position: relative;
}

.lawyer-modal-footer {
    padding: 0 28px 20px;
}

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

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

.lawyer-login-trigger, .lawyer-signup-trigger {
    cursor: pointer !important;
}

.modal-close {
    position: absolute;
    right: 0;
    top: 0;
    background: none !important;
    border: none !important;
    color: var(--lawyer-text-muted) !important;
    
}

/* Force Font Awesome font-family to prevent checkboxes/boxes */
.lawyer-auth-modal i, 
.lawyer-auth-modal .fas, 
.lawyer-auth-modal .far, 
.lawyer-auth-modal .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* Authentication Modal Styles */
.lawyer-auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.lawyer-auth-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.lawyer-auth-modal {
    background: white;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.auth-modal-close {
   position: absolute;
    top: 24px;
    right: 24px;
    background: none !important;
    border: none;
    font-size: 18px !important;
    color: var(--lawyer-text-muted) !important;
    cursor: pointer !important;
}

.auth-logo {
    height: 48px;
    margin-bottom: 10px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color:var(--lawyer-primary);
    margin: 0 0 10px;
}

.auth-subtitle {
    color: rgba(84, 101, 137, 1);
    font-size: 15px;
    margin-bottom: 30px;
}

.role-selection-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: rgba(248, 249, 250, 1);
    border: 1px solid rgba(235, 241, 248, 1);
    border-radius: 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-item:hover {
    background: #EFF6FF;
    border-color: #DBEAFE;
    transform: translateX(4px);
}

.role-icon {
    width: 56px;
    height: 56px;
    background: #EFF6FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #223049;
}

.role-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #223049 !important;
}

.role-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(84, 101, 137, 1) !important;
}

.auth-view {
    display: none;
}

.auth-view.active {
    display: block;
}

.auth-back {
    position: absolute;
    top: 40px;
    left: 40px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--lawyer-text-muted);
    cursor: pointer;
}

.auth-form {
    text-align: left;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #223049;
}

.form-group input {
    width: 100%;
    padding: 12px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #1D4ED8;
    background: white;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
    outline: none;
}

.digi-btn {
    width: 100% !important;
    padding: 14px !important;
    background: var(--lawyer-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.digi-btn:hover {
    background: var(--lawyer-secondary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.auth-footer-links {
    margin-top: 30px;
    font-size: 14px;
    color: var(--lawyer-text-muted);
}

.auth-footer-links a {
    color: var(--lawyer-primary) !important;
    text-decoration: none;
    font-weight: 600;
}

.lawyer-navigation .lawyer-menu {
    list-style: none;
    padding: 0;
}

/* Table Styles */
.lawyer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
    border: none !important;
}

.lawyer-table th {
    text-align: left;
    padding: 16px 24px !important;
    background: #F8FAFC !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    border: none !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

.lawyer-table td {
    padding: 20px 24px !important;
    border: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
    font-size: 14px !important;
    color: #1E293B !important;
    background: white !important;
    vertical-align: middle;
}

.lawyer-table tr:last-child td {
    border-bottom: none !important;
}

/* Badge Styles */
.badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #DCFCE7;
    color: #166534;
}

.badge-warning {
    background: #FEF9C3;
    color: #854D0E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Button Utility */
.lawyer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.lawyer-btn-primary {
    background: var(--lawyer-primary) !important;
    color: white !important;
}

.lawyer-btn-primary:hover {
    background: var(--lawyer-secondary) !important;
    transform: translateY(-1px);
    color: white !important;
}

.lawyer-btn-secondary {
    background: white;
    color: var(--lawyer-text);
    border: 1px solid var(--lawyer-border);
}

.lawyer-btn-secondary:hover {
    background: #F8FAFC;
}

/* Grid Utilities */
.lawyer-grid {
    display: grid;
    gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}
/* Lawyer Toast CSS */
.lawyer-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.lawyer-toast {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-width: 400px;
    pointer-events: auto;
    animation: lawyer-toast-slide-in 0.3s ease forwards;
    transition: all 0.3s ease;
}

.lawyer-toast.hiding {
    animation: lawyer-toast-slide-out 0.3s ease forwards;
}

.lawyer-toast-icon-wrapper {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.lawyer-toast-icon-wrapper i,
.lawyer-toast-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

/* Types */
.lawyer-toast-success {
    background-color: #00d084; /* Vibrant Green from design */
    color: #fff;
}

.lawyer-toast-error {
    background-color: #ff4d4d; /* Vibrant Red from design */
    color: #fff;
}

.lawyer-toast-warning {
    background-color: #f1c40f; /* Vibrant Yellow from design */
    color: #fff;
}

@keyframes lawyer-toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes lawyer-toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
