/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background-color: #f3f4f6;
    display: flex;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: #698af7;
    color: white;
    border: none;
    padding: 0.75rem;
    /* border-radius: 0.5rem; */
    cursor: pointer;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); */
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #4e73eb;
    transform: translateY(-1px);
}

.mobile-menu-toggle i {
    font-size: 1.25rem;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Update existing sidebar styles */
.sidebar {
    width: 260px;
    background: #1e3a8a;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Sidebar Header Updates */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #ffffff;
}

.sidebar-header .logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header .logo {
    width: 36px;
    height: 36px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Close Button (Mobile Only) */
.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Updated Navigation Styles */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    width: 100%;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #3b82f6;
}

.sidebar-nav .nav-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-left-color: #3b82f6;
}

.sidebar-nav .nav-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Updated Footer Styles */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.logout-btn {
    width: 100%;

    
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    
    transform: translateY(-1px);
}

/* Desktop View */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .sidebar-close {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .top-nav {
        padding: 1rem 1rem 1rem 4.5rem;
    }

    .header {
        padding: 1rem 1rem 1rem 4.5rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        top: 0.5rem;
        left: 18.75rem;
        padding: 13px;
    }

    .top-nav,
    .header {
        padding: 0.875rem 0.875rem 0.875rem 4rem;
    }

    .sidebar-header {
        padding: 1.25rem;
    }

    .sidebar-nav .nav-item {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: #1e3a8a;
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    padding: 0 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 36px;
    height: 36px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: -12px;
    color: rgb(12, 12, 12);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: black;
}

.sidebar-nav i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid #3b82f6;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation */
.top-nav {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-btn {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.user-profile:hover {
    background: #f3f4f6;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-weight: 500;
    color: #1f2937;
}

.user-profile i {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 1.5rem 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.breadcrumb i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.stat-info p {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

.stat-trend {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.up {
    color: #10b981;
}

.stat-trend.down {
    color: #ef4444;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card:last-child {
    margin-bottom: 0;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.view-all {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.view-all:hover {
    color: #2563eb;
    text-decoration: underline;
}

.card-body {
    padding: 1.5rem;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    background: #f9fafb;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-outline {
    background: white;
    border-color: #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.action-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.action-btn span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

/* Recent Activity */
.recent-activity h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-list li {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.activity-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #374151;
    flex-shrink: 0;
}

.activity-icon i {
    color: inherit;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #111827;
}

.activity-content span {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        /* transform: translateX(-100%); */
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-nav {
        padding: 0.75rem 1rem;
    }
    
    .search-bar {
        width: 200px;
    }

    .welcome-section h2{
        font-size: 1.3rem !important;
    }
    
    .user-profile span {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-bar {
        width: 150px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* Login Screen Styles */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 4rem;
    height: 4rem;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto 1rem; */
}

.service-icon.police {
    background: #ef4444; /* Red for police verification */
}

.service-icon.rto {
    background: #f59e0b; /* Amber/Yellow for RTO */
}

.service-icon.gazette {
    background: #10b981; /* Green for Gazette */
}


.logo i {
    font-size: 2rem;
    color: white;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6b7280;
}

.login-form {
    space-y: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    /* left: 0.75rem; */
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    background: #fef2f2;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.login-btn {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background: #1d4ed8;
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-credentials {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.demo-credentials h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.75rem;
}

.credential-item {
    font-size: 0.75rem;
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    height: 100vh;
    background: #f9fafb;
}

.sidebar {
    width: 16rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-header i {
    font-size: 2rem;
    color: #ffffff;
}

.sidebar-header span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.sidebar-nav {
    flex: 1;
    padding: 1.25rem 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-item.active {
    background: #dbeafe;
    color: #1d4ed8;
    border-right: 4px solid #2563eb;
}

.nav-item i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
    width: 1.5rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 0.75rem;
}

.user-details .user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.user-details .user-email {
    font-size: 0.75rem;
    color: #6b7280;
}

.logout-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: #6b7280;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
}

.notification-btn:hover {
    color: #6b7280;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-card {
    display: flex;
    align-items: center;
}

.stat-icon {
    margin-right: 1.25rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #005eff;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.negative {
    color: #dc2626;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.section-header p {
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-group {
    position: relative;
    flex: 1;
    max-width: 24rem;
}

.search-group i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-group input {
    width: 250%;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.search-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0px;
    margin-top: 0px;
}

.filter-group i {
    color: #9ca3af;
}

.filter-group select {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
}

.filter-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tables */
.table-container {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* Status Badges */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status.Pending {
    background: #fef3c7;
    color: #92400e;
}

.status.Active{
    background: #d1fae5;
    color: #065f46;
}

.status.Inprogress {
    background: #dbeafe;
    color: #1e40af;
}

.status.Completed {
    background: #d1fae5;
    color: #065f46;
}

.status.Rejected {
    background: #fee2e2;
    color: #991b1b;
}


.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.active{
    background: #d1fae5;
    color: #065f46;
}

.status.inprogress {
    background: #dbeafe;
    color: #1e40af;
}

.status.completed {
    background: #d1fae5;
    color: #065f46;
}

.status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.priority {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.priority.high {
    background: #fee2e2;
    color: #991b1b;
}

.priority.medium {
    background: #fef3c7;
    color: #92400e;
}

.priority.low {
    background: #d1fae5;
    color: #065f46;
}

/* Applications Grid */
.applications-grid,
.cases-grid,
.my-applications-grid {
    display: grid;
    gap: 1.5rem;
}

.application-card,
.case-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.642);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.application-card:hover,
.case-card:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.642);
}

.application-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.applicant-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.applicant-avatar {
    width: 3rem;
    height: 3rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.applicant-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.applicant-details p {
    font-size: 0.875rem;
    color: #6b7280;
}

.application-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item p:first-child {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.detail-item p:last-child {
    font-weight: 500;
    color: #111827;
}

.documents-list {
    margin-bottom: 1rem;
}

.documents-list p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.document-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.document-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.application-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.application-actions p {
    font-size: 0.875rem;
    color: #6b7280;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn:hover {
    background: #f9fafb;
}

.action-btn.primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.action-btn.primary:hover {
    background: #1d4ed8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.service-icon.pan {
    background: #2563eb;
}

.service-icon.aadhaar {
    background: #059669;
}

.service-icon.ration {
    background: #7c3aed;
}

.service-icon.driving {
    background: #ea580c;
}

.service-icon i {
    font-size: 1.5rem;
}

.service-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Application Form */
.application-form-container {
    max-width: 4xl;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.form-header p {
    color: #6b7280;
    margin-top: 0.5rem;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    /* padding-left: 3rem !important; */
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.required-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.required-doc {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #fff7ed;
    border-radius: 0.5rem;
}

.required-doc i {
    color: #ea580c;
    margin-right: 0.5rem;
}

.required-doc span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9a3412;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #ea580c;
}

.upload-zone i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.upload-zone p {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.upload-btn {
    background: #ea580c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-btn:hover {
    background: #dc2626;
}

.file-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.uploaded-files {
    margin-top: 1.5rem;
}

.uploaded-files h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.75rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.file-info-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-info-group i {
    color: #9ca3af;
}

.file-details p:first-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.file-details p:last-child {
    font-size: 0.75rem;
    color: #6b7280;
}

.remove-file {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
}

.remove-file:hover {
    color: #991b1b;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Dashboard Specific Styles */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.welcome-section p {
    color: #6b7280;
    margin-top: 0.5rem;
}

.services-section {
    margin-bottom: 2rem;
}

.services-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.recent-applications {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.recent-applications .section-header {
    padding: 1.5rem 1.5rem 0;
    margin-bottom: 0;
}

.recent-applications .section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.recent-applications .section-header a {
    font-size: 0.875rem;
    color: #ea580c;
    text-decoration: none;
    font-weight: 500;
}

.recent-applications .section-header a:hover {
    color: #dc2626;
}

.application-list {
    padding-top: 1rem;
}

.application-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.application-item:hover {
    background: #f3f4f6;
}

.application-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.application-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #ea580c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-type {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.application-id {
    font-size: 0.875rem;
    color: #6b7280;
}

.application-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.application-date {
    font-size: 0.875rem;
    color: #6b7280;
}

/* E-seva Dashboard Specific */
.dashboard-grid {
    display: grid;
    /* grid-template-columns: 1fr 2fr; */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    text-align: left;
}

.action-btn.process {
    background: #dcfce7;
    color: #166534;
}

.action-btn.process:hover {
    background: #bbf7d0;
}

.action-btn.review {
    background: #dbeafe;
    color: #1e40af;
}

.action-btn.review:hover {
    background: #bfdbfe;
}

.action-btn.complete {
    background: #f3e8ff;
    color: #7c3aed;
}

.action-btn.complete:hover {
    background: #e9d5ff;
}

.action-btn i {
    margin-right: 0.75rem;
}

.recent-assignments {
    background: white;
    width: 100%;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.recent-assignments h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.assignment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.assignment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.assignment-item:hover {
    background: #f3f4f6;
}

.assignment-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.assignment-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.schedule h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
}

.schedule-item:nth-child(1) {
    background: #dbeafe;
}

.schedule-item:nth-child(2) {
    background: #dcfce7;
}

.schedule-item:nth-child(3) {
    background: #fef3c7;
}

.schedule-item i {
    margin-right: 0.75rem;
    color: #6b7280;
}

.schedule-task {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.schedule-time {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 32rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #6b7280;
}

.modal-form {
    padding: 0 1.5rem 1.5rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-item input {
    margin-right: 0.5rem;
    border-radius: 0.25rem;
}

.checkbox-item span {
    font-size: 0.875rem;
    color: #374151;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 2rem;
    color: #059669;
}

.success-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.success-modal p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.application-details {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.app-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #111827;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-fill.completed {
    background: #059669;
}

.progress-fill.rejected {
    background: #dc2626;
}

.progress-fill.default {
    background: #ea580c;
}

.welcome-section{
    display: block;
}

.sec-2{
    display: block;
}

.filter-group i{
    display: block;
}




/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

  

    .sidebar-nav .nav-item{
        width: 122%;
    }

    .welcome-section{
        display: none;
    }

    .form-group input,
.form-group textarea {
    width: 100% !important;
}

.form-header h2{
    font-size: 1.3rem !important;
}

    .filter-bar{
        padding: 1rem;
    }

    .filter-group{
        margin-top: -51px;
        margin-left: 180px;
        z-index: 200;
    }

    .filter-group i{
        display: none;
    }

    .search-group input{
        width: 58%;
    }
    
    .sidebar {
        width: 70%;
        height: 92vh;
    }

    .sec-2{
        display: none;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .nav-item {
        white-space: nowrap;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 0rem 1rem !important;
    }
    
    .header {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .application-details {
        grid-template-columns: 1fr;
    }
    
    .application-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .action-buttons {
        justify-content: stretch;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}






/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Update existing sidebar styles */
.sidebar {
    width: 260px;
    background: white;
    color: #374151;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Sidebar Header Updates */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.sidebar-header .logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header .logo {
    width: 36px;
    height: 36px;
    background: #1e3a8a;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar-header span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

/* Close Button (Mobile Only) */
.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

/* Updated Navigation Styles */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    width: 100%;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover {
    background: #f3f4f6;
    color: #374151;
    border-left-color: #1e3a8a;
}

.sidebar-nav .nav-item.active {
    background: #dbeafe;
    color: #1e40af;
    border-left-color: #1e3a8a;
}

.sidebar-nav .nav-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Updated Footer Styles */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.user-details .user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.user-details .user-email {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}






/* Main content adjustment */
.main-content {
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

/* Header updates for mobile */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

.notification-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.header-actions .user-avatar {
    width: 2rem;
    height: 2rem;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.sidebar-footer{
    margin-bottom: 0rem;
}

/* Desktop View */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .sidebar-close {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar-footer{
        margin-bottom: 3rem;
    }
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    

    .header h1 {
        font-size: 1.25rem;
    }

    /* Ensure sidebar navigation remains vertical on mobile */
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .sidebar-nav .nav-item {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: #6b7280;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 0.95rem;
        width: 100%;
        font-weight: 500;
        border-left: 3px solid transparent;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Override any existing problematic mobile styles */
@media (max-width: 768px) {
    /* Remove any horizontal scrolling behavior */
    .sidebar-nav {
        display: flex !important;
        flex-direction: column !important;
        padding: 1.5rem 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .sidebar-nav .nav-item {
        width: 100% !important;
        white-space: nowrap !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        padding: 1rem 1.5rem !important;
        color: #6b7280 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        border-left: 3px solid transparent !important;
        flex-shrink: 0 !important;
    }

    /* Ensure sidebar takes proper width on mobile */
    .sidebar {
        width: 280px !important;
        max-width: 80vw !important;
    }
}

@media (max-width: 480px) {
    

    

    .header h1 {
        font-size: 1.125rem;
    }

    .sidebar-header {
        padding: 1.25rem;
    }

    .sidebar-nav .nav-item {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    .user-details .user-name {
        font-size: 0.8125rem;
    }

    .user-details .user-email {
        font-size: 0.6875rem;
    }

    .sidebar {
        width: 260px !important;
        max-width: 85vw !important;
    }
}





/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: white;
    color: #374151;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.sidebar-header .logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header .logo-section i {
    font-size: 1.5rem;
    color: #ffffff;
}

.sidebar-header span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

/* Close Button (Hidden on Desktop) */
.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover {
    background: #f3f4f6;
    color: #374151;
    border-left-color: #1e3a8a;
}

.sidebar-nav .nav-item.active {
    background: #dbeafe;
    color: #1e40af;
    border-left-color: #1e3a8a;
}

.sidebar-nav .nav-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.user-details .user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.user-details .user-email {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}


/* Main Content */
.main-content {
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

.notification-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.header-actions .user-avatar {
    width: 2rem;
    height: 2rem;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Desktop View - Hide mobile elements */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .sidebar-close {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
    }

    /* Show sidebar when open class is added */
    .sidebar.open {
        transform: translateX(0);
    }

    /* Show close button on mobile */
    .sidebar-close {
        display: block;
    }

    /* Remove left margin from main content */
    .main-content {
        margin-left: 0;
    }

    /* Adjust header for mobile menu button */
    
    .header h1 {
        font-size: 1.25rem;
    }

    /* Ensure sidebar navigation remains vertical on mobile */
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .sidebar-nav .nav-item {
        width: 100%;
        white-space: nowrap;
        margin-right: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    /* Adjust sidebar width on mobile */
    .sidebar {
        width: 280px;
        max-width: 80vw;
    }

    /* Add some bottom margin to sidebar footer */
    .sidebar-footer {
        margin-bottom: 3.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
   
    

    .sidebar-header {
        padding: 1.25rem;
    }

    .sidebar-nav .nav-item {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .user-details .user-name {
        font-size: 0.8125rem;
    }

    .user-details .user-email {
        font-size: 0.6875rem;
    }

    .sidebar {
        width: 260px;
        max-width: 85vw;
    }
}