/* Login Screen Styles */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.3s ease;
}

#login-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-container {
    width: 1000px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.login-brand-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 Q50,20 100,0 L100,100 Q50,80 0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.login-brand-content {
    position: relative;
    z-index: 2;
    max-width: 350px;
    margin: 0 auto;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.login-logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.login-logo-text {
    font-size: 24px;
    font-weight: 700;
}

.login-tagline {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.login-brand-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.login-form-section {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.login-form-header {
    margin-bottom: 30px;
}

.login-form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.login-form-subtitle {
    color: var(--gray);
    font-size: 14px;
}

.login-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.login-link:hover {
    text-decoration: underline;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-input-wrapper {
    position: relative;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-3);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.login-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #888;
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-3);
}

.login-divider span {
    padding: 0 12px;
}

.social-login-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.social-login-btn {
    flex: 1;
    padding: 13px;
    border: 2px solid var(--light-3);
    border-radius: 8px;
    background: white;
    color: #444;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.social-login-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.login-footer {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-3);
}

.login-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.login-error.show {
    display: block;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.notification-success {
    border-left-color: var(--success);
}

.notification-info {
    border-left-color: var(--primary);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification i:first-child {
    font-size: 20px;
}

.notification-success i:first-child {
    color: var(--success);
}

.notification-info i:first-child {
    color: var(--primary);
}

.notification-error i:first-child {
    color: var(--danger);
}

.notification span {
    flex: 1;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    font-size: 12px;
}


@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hide main app initially */
#app-container {
    display: none;
}

#app-container.visible {
    display: block;
}

/* Rest of your existing CSS remains the same */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #e6e9ff;
    --secondary: #7209b7;
    --accent: #06d6a0;
    --danger: #ef476f;
    --warning: #ffd166;
    --dark: #121826;
    --dark-2: #1f2937;
    --dark-3: #374151;
    --light: #f8fafc;
    --light-2: #f1f5f9;
    --light-3: #e2e8f0;
    --gray: #94a3b8;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
}

body.dark-mode {
    background: var(--dark);
    color: white;
}

/* App Container */
.app-container {
    display: block;
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    height: 70px;
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.dark-mode .top-nav {
    background: var(--dark-2);
    border-bottom: 1px solid var(--dark-3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--dark);
}

.dark-mode .logo {
    color: white;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.search-bar {
    position: relative;
    width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--light-3);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--light-2);
    transition: var(--transition);
}

.dark-mode .search-bar input {
    background: var(--dark-3);
    border-color: var(--dark-3);
    color: white;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.dark-mode .search-bar input:focus {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.dark-mode .search-icon {
    color: var(--gray);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* logout */

#logout-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

#logout-link:hover {
    color: var(--danger);
}

#logout-link i {
    font-size: 16px;
}

.logout {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout ul,
.logout ol {
    list-style: none;
}

.top-nav .logout,
.top-nav .logout * {
    list-style: none;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: white;
    border-right: 1px solid var(--light-3);
    padding: 25px 0;
    overflow-y: auto;
    z-index: 90;
    transition: var(--transition);
}

.dark-mode .sidebar {
    background: var(--dark-2);
    border-right: 1px solid var(--dark-3);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.nav-links {
    list-style: none;
    padding: 0 20px;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--dark-3);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.dark-mode .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.dark-mode .nav-links a:hover,
.dark-mode .nav-links a.active {
    background: rgba(67, 97, 238, 0.2);
    color: var(--primary-light);
}

.nav-links i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 30px;
    min-height: calc(100vh - 70px);
    transition: var(--transition);
}

.main-content.expanded {
    margin-left: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 8px;
}

.dark-mode .page-title h1 {
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.dark-mode .card {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.dark-mode .card-title {
    color: white;
}

/* Enhanced Dashboard Stats */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dark-mode .stat-card {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.all-cases {
    background: linear-gradient(135deg, var(--primary), #3a56d4);
}

.stat-icon.todays {
    background: linear-gradient(135deg, var(--accent), #05c390);
}

.stat-icon.tomorrows {
    background: linear-gradient(135deg, var(--warning), #e6b400);
}

.stat-icon.awaited {
    background: linear-gradient(135deg, #7209b7, #5d0a93);
}

.stat-icon.decided {
    background: linear-gradient(135deg, #06d6a0, #05c390);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 5px;
}

.dark-mode .stat-number {
    color: white;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.stat-trend {
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-trend.up {
    color: #06d6a0;
}

.stat-trend.down {
    color: #ef476f;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 1px solid var(--light-3);
}

.dark-mode .btn-secondary {
    background: var(--dark-3);
    color: white;
    border-color: var(--dark-3);
}

.btn-secondary:hover {
    background: var(--light-2);
}

.dark-mode .btn-secondary:hover {
    background: var(--dark-3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

thead {
    background: var(--light-2);
}

.dark-mode thead {
    background: var(--dark-3);
}

th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-3);
    font-size: 14px;
    border-bottom: 1px solid var(--light-3);
}

.dark-mode th {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--dark-3);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-3);
    color: var(--dark);
    font-size: 14px;
}

.dark-mode td {
    color: white;
    border-bottom-color: var(--dark-3);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.dark-mode tbody tr:hover {
    background: var(--dark-3);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-active {
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent);
}

.badge-pending {
    background: rgba(255, 209, 102, 0.1);
    color: #e6b400;
}

.badge-closed {
    background: rgba(239, 71, 111, 0.1);
    color: var(--danger);
}

.badge-high {
    background: rgba(239, 71, 111, 0.1);
    color: var(--danger);
}

.badge-medium {
    background: rgba(255, 209, 102, 0.1);
    color: #e6b400;
}

.badge-low {
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent);
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark-3);
}

.dark-mode .form-group label {
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--light-3);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
}

.dark-mode .form-group input,
.dark-mode .form-group select,
.dark-mode .form-group textarea {
    background: var(--dark-3);
    border-color: var(--dark-3);
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.dark-mode .form-group input:focus,
.dark-mode .form-group select:focus,
.dark-mode .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Case Status Search */
.court-search-container {
    background: var(--light-2);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.dark-mode .court-search-container {
    background: var(--dark-3);
}

.search-result-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.dark-mode .search-result-card {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}

.case-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 25px;
}

.case-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-3);
}

.dark-mode .case-timeline::before {
    background: var(--dark-3);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.dark-mode .timeline-item::before {
    border-color: var(--dark-2);
}

.timeline-item.completed::before {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item.pending::before {
    background: var(--warning);
    box-shadow: 0 0 0 2px var(--warning);
}

/* Progress Indicators */
.progress-container {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-3);
}

.dark-mode .progress-label {
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
    height: 10px;
    background: var(--light-3);
    border-radius: 5px;
    overflow: hidden;
}

.dark-mode .progress-bar {
    background: var(--dark-3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Reports Section */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.report-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
}

.dark-mode .report-card {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-chart-container {
    height: 250px;
    position: relative;
}

/* Enhanced Profile Image Upload */
.profile-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 600;
    overflow: hidden;
}

.dark-mode .profile-image {
    border-color: var(--dark-2);
}

.profile-image-upload {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-mode .profile-image-upload {
    border-color: var(--dark-2);
}

.profile-image-upload:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-image-input {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.dark-mode .modal-content {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--light-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark-mode .modal-header {
    border-bottom-color: var(--dark-3);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--light-3);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.dark-mode .modal-footer {
    border-top-color: var(--dark-3);
}

/* Profile Container */
.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    height: fit-content;
}

.dark-mode .profile-sidebar {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}

/* Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calendar-day {
    height: 120px;
    border: 1px solid var(--light-3);
    border-radius: var(--radius);
    padding: 10px;
    overflow-y: auto;
    transition: var(--transition);
    background: white;
}

.dark-mode .calendar-day {
    background: var(--dark-2);
    border-color: var(--dark-3);
}

.calendar-day:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.dark-mode .calendar-day:hover {
    background: var(--dark-3);
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 10px;
    background: var(--light-2);
    border-radius: var(--radius);
}

.dark-mode .calendar-day-header {
    background: var(--dark-3);
    color: white;
}

.calendar-day.today {
    background: var(--primary-light);
    border-color: var(--primary);
}

.dark-mode .calendar-day.today {
    background: rgba(67, 97, 238, 0.2);
    border-color: var(--primary);
}

.calendar-day.other-month {
    background: var(--light-2);
    color: var(--gray);
}

.dark-mode .calendar-day.other-month {
    background: var(--dark-3);
    color: var(--gray);
}

.event-item {
    background: rgba(67, 97, 238, 0.1);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid var(--primary);
}

.event-item:hover {
    background: rgba(67, 97, 238, 0.2);
    transform: translateX(2px);
}

.event-item.hearing {
    border-left-color: var(--danger);
    background: rgba(239, 71, 111, 0.1);
}

.event-item.meeting {
    border-left-color: var(--accent);
    background: rgba(6, 214, 160, 0.1);
}

.event-item.deadline {
    border-left-color: var(--warning);
    background: rgba(255, 209, 102, 0.1);
}

/* Documents */
.document-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-item {
    background: white;
    border: 1px solid var(--light-3);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.dark-mode .document-item {
    background: var(--dark-2);
    border-color: var(--dark-3);
}

.document-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.document-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 15px;
}

.dark-mode .document-icon {
    background: rgba(67, 97, 238, 0.2);
}

/* Tasks */
.task-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid var(--light-3);
    border-radius: var(--radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

.dark-mode .task-item {
    background: var(--dark-2);
    border-color: var(--dark-3);
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.task-item.completed {
    opacity: 0.7;
    background: var(--light-2);
}

.dark-mode .task-item.completed {
    background: var(--dark-3);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--light-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .task-checkbox {
    border-color: var(--dark-3);
}

.task-checkbox.checked {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-mode .contact-card {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1px;
    background: var(--light-3);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
}

.dark-mode .tabs {
    background: var(--dark-3);
}

.tab {
    padding: 15px 25px;
    background: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-3);
}

.dark-mode .tab {
    background: var(--dark-2);
    color: rgba(255, 255, 255, 0.8);
}

.tab:hover {
    background: var(--light);
}

.dark-mode .tab:hover {
    background: var(--dark-3);
}

.tab.active {
    background: white;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.dark-mode .tab.active {
    background: var(--dark-2);
    color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}

.dark-mode .loading-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dark-mode .spinner {
    border-color: var(--dark-3);
    border-top-color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--light-2);
    border: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--dark);
}

.dark-mode .mobile-menu-btn {
    background: var(--dark-3);
    color: white;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.dark-mode .notification {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
}

.notification.success {
    border-left: 4px solid var(--accent);
}

.notification.error {
    border-left: 4px solid var(--danger);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

.notification.info {
    border-left: 4px solid var(--primary);
}

/* View Transitions */
.view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: block;
}

/* File Upload Area */
.file-drop-area {
    border: 2px dashed var(--light-3);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode .file-drop-area {
    border-color: var(--dark-3);
}

.file-drop-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.dark-mode .file-drop-area:hover {
    background: rgba(67, 97, 238, 0.1);
}

.file-preview {
    margin-top: 15px;
    display: none;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light-2);
    border-radius: var(--radius);
}

.dark-mode .file-preview-item {
    background: var(--dark-3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .search-bar {
        width: 300px;
    }

    .main-content {
        padding: 20px;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 20px;
    }

    .search-bar {
        display: none;
    }

    .main-content {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        text-align: left;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .calendar-day {
        height: auto;
        min-height: 100px;
    }

    .document-list,
    .contacts-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }

    .case-timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -8px;
    }
}

@media (max-width: 480px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .profile-image-container {
        width: 120px;
        height: 120px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        font-size: 36px;
    }

    .profile-image-upload {
        width: 35px;
        height: 35px;
        bottom: 8px;
        right: 8px;
    }
}

/* Print Styles */
@media print {

    .top-nav,
    .sidebar,
    .btn,
    .mobile-menu-btn,
    .notification {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .stat-card {
        break-inside: avoid;
    }

    .report-card {
        break-inside: avoid;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

.w-100 {
    width: 100%;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.cursor-pointer {
    cursor: pointer;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-2);
    border-radius: 4px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: var(--dark-3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Color */
::selection {
    background: rgba(67, 97, 238, 0.3);
    color: white;
}

.dark-mode ::selection {
    background: rgba(67, 97, 238, 0.5);
}

/* Focus Outline */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Placeholder Styling */
::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.dark-mode ::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Tooltip */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.dark-mode [title]:hover::after {
    background: var(--light);
    color: var(--dark);
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Badge Variations */
.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* Avatar Sizes */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 20px;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background: var(--accent);
}

.status-indicator.offline {
    background: var(--gray);
}

.status-indicator.busy {
    background: var(--danger);
}

/* Divider */
.divider {
    height: 1px;
    background: var(--light-3);
    margin: 20px 0;
    border: none;
}

.dark-mode .divider {
    background: var(--dark-3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light-3);
}

.dark-mode .empty-state i {
    color: var(--dark-3);
}

/* Count Badge */
.count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Chip */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--light-2);
    border-radius: 20px;
    font-size: 14px;
    color: var(--dark-3);
}

.dark-mode .chip {
    background: var(--dark-3);
    color: rgba(255, 255, 255, 0.8);
}

.chip i {
    font-size: 12px;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info {
    background: rgba(67, 97, 238, 0.1);
    border-left: 4px solid var(--primary);
    color: var(--primary-dark);
}

.alert-success {
    background: rgba(6, 214, 160, 0.1);
    border-left: 4px solid var(--accent);
    color: #05c390;
}

.alert-warning {
    background: rgba(255, 209, 102, 0.1);
    border-left: 4px solid var(--warning);
    color: #e6b400;
}

.alert-error {
    background: rgba(239, 71, 111, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.dark-mode .alert {
    background: rgba(255, 255, 255, 0.05);
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--light-3);
    z-index: 1;
}

.dark-mode .stepper::before {
    background: var(--dark-3);
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--light-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray);
}

.dark-mode .step-number {
    background: var(--dark-2);
    border-color: var(--dark-3);
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step.completed .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg,
            var(--light-2) 0%,
            var(--light-3) 50%,
            var(--light-2) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark-mode .shimmer {
    background: linear-gradient(90deg,
            var(--dark-3) 0%,
            var(--dark-2) 50%,
            var(--dark-3) 100%);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Toast Notification Container */
#notification-container {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

.slide-in-right {
    animation: slideInRight 0.3s ease;
}

.rotate {
    animation: spin 1s linear infinite;
}

/* Custom Checkbox */
.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-3);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-checkbox:hover {
    border-color: var(--primary);
}

.custom-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.custom-checkbox.checked::after {
    content: '✓';
    font-size: 12px;
    font-weight: bold;
}

/* Custom Radio */
.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-radio:hover {
    border-color: var(--primary);
}

.custom-radio.checked {
    border-color: var(--primary);
}

.custom-radio.checked::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.dark-mode .tooltip .tooltip-text {
    background-color: var(--light);
    color: var(--dark);
}

.dark-mode .tooltip .tooltip-text::after {
    border-color: var(--light) transparent transparent transparent;
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gap-5 {
    gap: 5px;
}

.gap-15 {
    gap: 15px;
}

.gap-25 {
    gap: 25px;
}

/* Text Utilities */
.text-sm {
    font-size: 12px;
}

.text-base {
    font-size: 14px;
}

.text-lg {
    font-size: 16px;
}

.text-xl {
    font-size: 18px;
}

.text-2xl {
    font-size: 24px;
}

.text-3xl {
    font-size: 32px;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-gray {
    color: var(--gray);
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-success {
    color: var(--accent);
}

/* Border Utilities */
.border {
    border: 1px solid var(--light-3);
}

.border-t {
    border-top: 1px solid var(--light-3);
}

.border-b {
    border-bottom: 1px solid var(--light-3);
}

.border-l {
    border-left: 1px solid var(--light-3);
}

.border-r {
    border-right: 1px solid var(--light-3);
}

.dark-mode .border,
.dark-mode .border-t,
.dark-mode .border-b,
.dark-mode .border-l,
.dark-mode .border-r {
    border-color: var(--dark-3);
}

/* Background Utilities */
.bg-light {
    background: var(--light);
}

.bg-light-2 {
    background: var(--light-2);
}

.bg-light-3 {
    background: var(--light-3);
}

.bg-primary {
    background: var(--primary);
}

.bg-primary-light {
    background: var(--primary-light);
}

.bg-accent {
    background: var(--accent);
}

.bg-danger {
    background: var(--danger);
}

.bg-warning {
    background: var(--warning);
}

.dark-mode .bg-light,
.dark-mode .bg-light-2,
.dark-mode .bg-light-3 {
    background: var(--dark-2);
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-none {
    box-shadow: none;
}

/* Rounded Utilities */
.rounded {
    border-radius: var(--radius);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: 9999px;
}

/* Width Utilities */
.w-auto {
    width: auto;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-full {
    width: 100%;
}

/* Height Utilities */
.h-auto {
    height: auto;
}

.h-50 {
    height: 50%;
}

.h-75 {
    height: 75%;
}

.h-full {
    height: 100%;
}

/* Position Utilities */
.sticky {
    position: sticky;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

/* Z-index Utilities */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Overflow Utilities */
.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-visible {
    overflow: visible;
}

.overflow-scroll {
    overflow: scroll;
}

/* Display Utilities */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline {
    display: inline;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Flex Utilities */
.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-auto {
    flex: 1 1 auto;
}

.flex-none {
    flex: none;
}

/* Transition Utilities */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Cursor Utilities */
.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* User Select Utilities */
.select-none {
    user-select: none;
}

.select-text {
    user-select: text;
}

.select-all {
    user-select: all;
}

/* Pointer Events Utilities */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* Visibility Utilities */
.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* Opacity Utilities */
.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

/* Filter Utilities */
.filter-none {
    filter: none;
}

.filter-blur {
    filter: blur(4px);
}

.filter-grayscale {
    filter: grayscale(100%);
}

/* Backdrop Filter Utilities */
.backdrop-blur {
    backdrop-filter: blur(8px);
}

.backdrop-blur-none {
    backdrop-filter: none;
}

/* Transform Utilities */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform-none {
    transform: none;
}

.rotate-0 {
    transform: rotate(0deg);
}

.rotate-90 {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate-270 {
    transform: rotate(270deg);
}

.scale-100 {
    transform: scale(1);
}

.scale-95 {
    transform: scale(0.95);
}

.scale-105 {
    transform: scale(1.05);
}

.translate-x-0 {
    transform: translateX(0);
}

.translate-x-full {
    transform: translateX(100%);
}

.-translate-x-full {
    transform: translateX(-100%);
}

.translate-y-0 {
    transform: translateY(0);
}

.translate-y-full {
    transform: translateY(100%);
}

.-translate-y-full {
    transform: translateY(-100%);
}

/* Custom Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Enhanced Dashboard Stats */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.all-cases {
    background: linear-gradient(135deg, var(--primary), #3a56d4);
}

.stat-icon.todays {
    background: linear-gradient(135deg, var(--accent), #05c390);
}

.stat-icon.tomorrows {
    background: linear-gradient(135deg, var(--warning), #e6b400);
}

.stat-icon.awaited {
    background: linear-gradient(135deg, #7209b7, #5d0a93);
}

.stat-icon.decided {
    background: linear-gradient(135deg, #06d6a0, #05c390);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.stat-trend {
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-trend.up {
    color: #06d6a0;
}

.stat-trend.down {
    color: #ef476f;
}

/* Enhanced Profile Image Upload */
.profile-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 600;
}

.profile-image-upload {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-image-upload:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-image-input {
    display: none;
}

/* Enhanced Reports Section */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.report-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-chart-container {
    height: 250px;
    position: relative;
}

/* Case Status Search Enhancements */
.court-search-container {
    background: var(--light-2);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.search-result-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.case-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 25px;
}

.case-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-3);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.completed::before {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item.pending::before {
    background: var(--warning);
    box-shadow: 0 0 0 2px var(--warning);
}

/* Progress Indicators */
.progress-container {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    height: 10px;
    background: var(--light-3);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-image-container {
        width: 120px;
        height: 120px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        font-size: 36px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles for Reports */
@media print {

    .top-nav,
    .sidebar,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}