/* HR System CSS Styles */
:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(20, 14.3%, 4.1%);
    --muted: hsl(60, 4.8%, 95.9%);
    --muted-foreground: hsl(25, 5.3%, 44.7%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(20, 14.3%, 4.1%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(20, 14.3%, 4.1%);
    --border: hsl(20, 5.9%, 90%);
    --input: hsl(20, 5.9%, 90%);
    --primary: hsl(207, 90%, 54%);
    --primary-foreground: hsl(211, 100%, 99%);
    --secondary: hsl(60, 4.8%, 95.9%);
    --secondary-foreground: hsl(24, 9.8%, 10%);
    --accent: hsl(60, 4.8%, 95.9%);
    --accent-foreground: hsl(24, 9.8%, 10%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(60, 9.1%, 97.8%);
    --ring: hsl(20, 14.3%, 4.1%);
    --radius: 0.5rem;
    --success: hsl(122, 39%, 49%);
    --success-foreground: hsl(60, 9.1%, 97.8%);
    --warning: hsl(32, 95%, 48%);
    --warning-foreground: hsl(60, 9.1%, 97.8%);
    --error: hsl(0, 74%, 50%);
    --error-foreground: hsl(60, 9.1%, 97.8%);
    --surface: hsl(0, 0%, 100%);
    --surface-foreground: hsl(20, 14.3%, 4.1%);
}

.dark {
    --background: hsl(240, 10%, 3.9%);
    --foreground: hsl(0, 0%, 98%);
    --muted: hsl(240, 3.7%, 15.9%);
    --muted-foreground: hsl(240, 5%, 64.9%);
    --popover: hsl(240, 10%, 3.9%);
    --popover-foreground: hsl(0, 0%, 98%);
    --card: hsl(240, 10%, 3.9%);
    --card-foreground: hsl(0, 0%, 98%);
    --border: hsl(240, 3.7%, 15.9%);
    --input: hsl(240, 3.7%, 15.9%);
    --primary: hsl(207, 90%, 54%);
    --primary-foreground: hsl(211, 100%, 99%);
    --secondary: hsl(240, 3.7%, 15.9%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --accent: hsl(240, 3.7%, 15.9%);
    --accent-foreground: hsl(0, 0%, 98%);
    --destructive: hsl(0, 62.8%, 30.6%);
    --destructive-foreground: hsl(0, 0%, 98%);
    --ring: hsl(240, 4.9%, 83.9%);
    --radius: 0.5rem;
    --success: hsl(122, 39%, 49%);
    --success-foreground: hsl(0, 0%, 98%);
    --warning: hsl(32, 95%, 48%);
    --warning-foreground: hsl(0, 0%, 98%);
    --error: hsl(0, 74%, 50%);
    --error-foreground: hsl(0, 0%, 98%);
    --surface: hsl(240, 10%, 3.9%);
    --surface-foreground: hsl(0, 0%, 98%);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
    max-width: 100vw;
}

/* Layout */
.sidebar {
    width: 280px;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 50;
}

.dark .sidebar {
    background-color: hsl(var(--card));
}

.main-content {
    margin-left: 280px;
    background-color: #f8fafc;
    min-height: 100vh;
    width: calc(100vw - 280px);
    max-width: calc(100vw - 280px);
    overflow-x: hidden;
}

.dark .main-content {
    background-color: hsl(var(--background));
}

.header {
    background-color: white;
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark .header {
    background-color: hsl(var(--card));
}

.content {
    padding: 2rem;
}

/* Sidebar Styles */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2563eb;
    margin: 0 0 0.25rem 0;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.nav {
    margin-top: 1.5rem;
}

.nav-list {
    padding: 0;
    list-style: none;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-section {
    margin-top: 2rem;
    padding: 0 1rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.75rem;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    position: relative;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.nav-link.active {
    background-color: #dbeafe;
    color: #2563eb;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #2563eb;
    border-radius: 2px 0 0 2px;
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Cards */
.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    padding: 1.5rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.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-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color, #3b82f6);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #9ca3af;
    padding: 8px;
    background: #f3f4f6;
    border-radius: 8px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Color Variants */
.stat-card.primary::before { background: hsl(var(--primary)); }
.stat-card.primary .stat-value { color: hsl(var(--primary)); }

.stat-card.success::before { background: hsl(var(--success)); }
.stat-card.success .stat-value { color: hsl(var(--success)); }

.stat-card.warning::before { background: hsl(var(--warning)); }
.stat-card.warning .stat-value { color: hsl(var(--warning)); }

.stat-card.error::before { background: hsl(var(--error)); }
.stat-card.error .stat-value { color: hsl(var(--error)); }

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 1rem;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background-color: #f9fafb;
    margin: 0 -1rem;
    padding: 1.25rem 1rem;
    border-radius: 8px;
    border-bottom: 1px solid transparent;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.activity-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.activity-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.activity-icon.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.4;
}

.activity-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Chart Container */
.chart-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.3'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.chart-placeholder {
    text-align: center;
    color: #64748b;
    z-index: 1;
    position: relative;
}

.chart-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #3b82f6;
    opacity: 0.7;
}

.chart-placeholder p {
    font-weight: 600;
    margin: 0.5rem 0;
}

.chart-placeholder .text-sm {
    color: #94a3b8;
    font-weight: 400;
}

/* Header */
.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    color: hsl(var(--foreground));
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: hsl(var(--accent));
}

.theme-toggle:active {
    transform: scale(0.95);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    background-color: hsl(var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary-foreground));
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 50;
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .dark .sidebar {
        background-color: hsl(var(--card));
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .header {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .content {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .activity-list {
        overflow-x: hidden;
    }
    
    .activity-item {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure all containers respect viewport width */
    .flex {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .grid {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Fix for mobile header */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Override any fixed widths that might cause overflow */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* Fix for wider screens to prevent overflow */
@media (min-width: 769px) {
    .main-content {
        margin-left: 280px;
        width: calc(100vw - 280px);
        max-width: calc(100vw - 280px);
    }
    
    .header {
        width: 100%;
        max-width: calc(100vw - 280px);
    }
    
    .content {
        width: 100%;
        max-width: calc(100vw - 280px);
        box-sizing: border-box;
        padding: 2rem;
    }
}

/* Notification Styles */
.notification-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    margin-top: 0.5rem;
    display: none;
    max-height: 400px;
    overflow: hidden;
}

.notifications-dropdown.show {
    display: block;
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f9fafb;
    display: flex;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

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

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

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.notification-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

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

.notifications-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

/* User Profile Styles */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    background: #f3f4f6;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    margin-top: 0.5rem;
    display: none;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-large {
    width: 2.5rem;
    height: 2.5rem;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-menu-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
    margin: 0;
}

.user-menu-email {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.user-menu-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0.5rem 0;
}

.user-menu-items {
    padding: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.user-menu-item:hover {
    background: #f9fafb;
    color: #111827;
}

.user-menu-item.text-red-600 {
    color: #dc2626;
}

.user-menu-item.text-red-600:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f9fafb;
    transform: scale(1.002);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Utilities */
.text-success { color: hsl(var(--success)); }
.text-warning { color: hsl(var(--warning)); }
.text-error { color: hsl(var(--error)); }
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }

.bg-success { background-color: hsl(var(--success)); }
.bg-warning { background-color: hsl(var(--warning)); }
.bg-error { background-color: hsl(var(--error)); }
.bg-primary { background-color: hsl(var(--primary)); }

.font-bold { font-weight: bold; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }

/* Mobile Navigation */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        border-top: 1px solid hsl(var(--border));
        padding: 0.5rem;
        z-index: 30;
    }
    
    .dark .mobile-nav {
        background-color: hsl(var(--card));
    }
    
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
        text-decoration: none;
        color: hsl(var(--muted-foreground));
        transition: color 0.2s ease;
    }
    
    .mobile-nav-item.active {
        color: hsl(var(--primary));
    }
    
    .mobile-nav-icon {
        width: 1.25rem;
        height: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .mobile-nav-label {
        font-size: 0.75rem;
    }
    
    .content {
        padding-bottom: 5rem;
    }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.mobile-menu-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        background: none;
        border: none;
        padding: 0.5rem;
        border-radius: var(--radius);
        cursor: pointer;
        color: hsl(var(--foreground));
    }
    
    .mobile-menu-toggle:hover {
        background-color: hsl(var(--accent));
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* Form Styles in Modals */
.modal .space-y-4 > * + * {
    margin-top: 16px;
}

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

.modal input,
.modal select,
.modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal .grid {
    display: grid;
}

.modal .grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

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

.modal .gap-4 {
    gap: 16px;
}

@media (min-width: 768px) {
    .modal .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}