/* --- Modern Theme Variables --- */
:root {
    --primary: #33D999;
    --primary-dark: #219a8b;
    --accent: #1a5f7a;
    --background: #f7fafd;
    --card-bg: #fff;
    --card-shadow: 0 6px 24px rgba(51, 217, 153, 0.08);
    --card-radius: 18px;
    --text-main: #222;
    --text-muted: #666;
    --border: #e0e0e0;
    --gradient: linear-gradient(135deg, #33D999 0%, #1a5f7a 100%);
}

[data-theme="dark"] {
    --primary: #33D999;
    --primary-dark: #219a8b;
    --accent: #1a5f7a;
    --background: #181c1f;
    --card-bg: #23272b;
    --card-shadow: 0 6px 24px rgba(51, 217, 153, 0.13);
    --card-radius: 18px;
    --text-main: #f7fafd;
    --text-muted: #b0b8c1;
    --border: #2c3238;
    --gradient: linear-gradient(135deg, #33D999 0%, #1a5f7a 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* Top Header Bar */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    right: 0;
    height: 80px;
    z-index: 1100;
    background: #017981;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin: 0;
    border: none;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
}

.header-center {
    position: absolute;
    left: 50%;
    top: 0;
    height: 80px;
    display: flex;
    align-items: center;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.header-center .welcome-text {
    font-size: 17px;
    font-weight: 600;
    color: #bbd1bb;
    text-align: center;
    pointer-events: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    color: #6876f1;
}

.header-left .logo {
    font-size: 28px;
    font-weight: 800;
    color: #d5e2d4;
    letter-spacing: 1px;
}

.notification-icon {
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    color: #d5e2d4;
}

.notification-icon:hover {
    color: #e5d8ec;
}

.profile-pic img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5d8ec;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #d5e2d4;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 0 !important;
}

/* Sidebar Navigation */
.sidebar {
    width: 220px;
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    background: #017981;
    color: #222;
    border-right: 1.5px solid #e0e0e0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding-top: 24px;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border-left: 4px solid transparent;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.nav-link:hover, .nav-item.active .nav-link {
    background: rgba(51,217,153,0.13);
    border-left-color: var(--primary);
    color: var(--primary);
}

.nav-link i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.nav-link span {
    font-weight: 500;
}

/* Sidebar Logout Button */
.sidebar-logout {
    margin-top: auto;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #ff6b6b;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-left: 4px solid transparent;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
    color: #ff4757;
}

.logout-btn i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.logout-btn span {
    font-weight: 500;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 32px 30px 30px 30px !important;
    background: var(--background);
    color: var(--text-main);
    min-height: calc(100vh - 80px);
    margin-top: 0 !important;
    height: calc(100vh - 80px);
    overflow-y: auto !important;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #33D999 0%, #1a5f7a 100%);
    border-radius: 20px;
    padding: 40px 32px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.welcome-message {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
    padding: 0 4px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-buttons .btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px 28px;
    margin-bottom: 32px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: none;
    display: flex;
    align-items: center;
    padding: 32px 28px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -40px; 
    right: -40px;
    width: 120px; 
    height: 120px;
    background: var(--gradient);
    opacity: 0.08;
    border-radius: 50%;
    z-index: 0;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(51,217,153,0.16);
    transform: translateY(-2px) scale(1.02);
}

.card-icon {
    font-size: 38px;
    margin-right: 22px;
    width: 64px; 
    height: 64px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #54c0ce22 0%, #51b4db11 100%);
    z-index: 1;
}

.card-content {
    z-index: 1;
}

.card-content h3 {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 300px;
}

.chart-container:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.chart-container h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container canvas {
    max-width: 100%;
    height: 220px !important;
    max-height: 220px;
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.recent-activity h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background-color: #e9ecef;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    color: white;
}

.activity-icon.success {
    background-color: #28a745;
}

.activity-icon.info {
    background-color: #17a2b8;
}

.activity-icon.error {
    background-color: #dc3545;
}

.activity-icon.warning {
    background-color: #ffc107;
    color: #333;
}

.activity-content p {
    margin: 0;
    font-weight: 500;
    color: #333;
}

.activity-time {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Buttons */
.btn, .btn-primary, .btn-secondary, .btn-danger {
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    padding: 16px 36px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(51,217,153,0.10);
    border: none;
    outline: none;
    cursor: pointer;
    margin: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(51,217,153,0.18);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 8px 24px rgba(51,217,153,0.22);
    transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: #14485a;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover, .btn-danger:focus {
    background: #b71c1c;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 12px rgba(51,217,153,0.05) !important;
}

.btn:disabled:hover {
    transform: none !important;
}

/* Dashboard header styles - removed, replaced with welcome section */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: none;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Notifications */
.notifications-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.notifications-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.notifications-tab-btn.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.notifications-tab-panel {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-overlay {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }
    
    body.sidebar-open .main-content {
        overflow-y: auto !important;
        height: calc(100vh - 80px) !important;
        position: relative !important;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .header-left {
        display: flex;
        align-items: center;
    }
}

/* Tablet responsive design */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 180px;
    }
    
    .main-content {
        margin-left: 180px;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .nav-link i {
        margin-right: 12px;
    }
}

/* Large screen optimization */
@media (min-width: 1400px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
    }
    
    .nav-link {
        padding: 16px 30px;
        font-size: 16px;
    }
}

/* Student Management Specific Styles */
.student-filters {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.student-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.student-filters h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.student-filters h3::before {
    content: "🔍";
    font-size: 1.25rem;
    filter: grayscale(0.2);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: end;
}

.student-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.student-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(51, 217, 153, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.student-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(51, 217, 153, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.student-card:hover::before {
    opacity: 1;
}

.student-card:hover::after {
    opacity: 1;
}

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.student-details h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.student-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.student-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(51, 217, 153, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.student-progress {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.progress-bar {
    width: 120px;
    height: 10px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.student-table {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.table-header {
    background: linear-gradient(135deg, var(--background) 0%, rgba(51, 217, 153, 0.02) 100%);
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.view-toggle {
    display: flex;
    gap: 0;
    background: var(--border);
    border-radius: 10px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-toggle button {
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle button:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.5);
}

.view-toggle button.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(51, 217, 153, 0.15);
    transform: translateY(-1px);
}

.export-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.export-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

/* Enhanced Form Styles for Student Page */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.form-group select,
.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 217, 153, 0.1);
    transform: translateY(-1px);
}

.form-group select:hover,
.form-group input:hover {
    border-color: var(--primary);
}

/* Enhanced Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(51, 217, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 217, 153, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(51, 217, 153, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Status Badge Enhancements */
.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
}

.status-active {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.status-placed {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.status-graduated {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #a0aec0, #718096);
    color: white;
}

/* Student Management Hero Section */
.student-management-hero {
    position: relative;
    background: var(--card-bg);
    border-radius: 24px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(51, 217, 153, 0.08);
    border: 1px solid var(--border);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(51, 217, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(26, 95, 122, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(51, 217, 153, 0.02) 50%, transparent 60%);
    background-size: 200px 200px, 150px 150px, 100px 100px;
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -10px) rotate(1deg); }
    66% { transform: translate(-5px, 5px) rotate(-0.5deg); }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(51, 217, 153, 0.05) 0%, 
        rgba(26, 95, 122, 0.03) 50%, 
        rgba(51, 217, 153, 0.02) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem 2rem;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(51, 217, 153, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    /* Fallback for browsers that don't support background-clip */
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Ensure visibility with fallback */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .hero-title {
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--text-main);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(51, 217, 153, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(51, 217, 153, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(51, 217, 153, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 217, 153, 0.2);
}

.hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1rem;
    padding: 0 2.5rem 2.5rem;
    justify-content: flex-end;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
}

.hero-btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(51, 217, 153, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(51, 217, 153, 0.4);
}

.hero-btn.secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-btn.secondary:hover {
    background: var(--background);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 217, 153, 0.15);
}

/* Departments Management Hero Section */
.departments-management-hero {
    position: relative;
    background: var(--card-bg);
    border-radius: 24px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(51, 217, 153, 0.08);
    border: 1px solid var(--border);
}

.departments-management-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.departments-management-hero .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(26, 95, 122, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(51, 217, 153, 0.08) 0%, transparent 50%),
        linear-gradient(60deg, transparent 35%, rgba(26, 95, 122, 0.03) 50%, transparent 65%);
    background-size: 180px 180px, 220px 220px, 120px 120px;
    animation: departmentPatternMove 25s ease-in-out infinite;
}

@keyframes departmentPatternMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(8px, -12px) rotate(0.8deg); }
    50% { transform: translate(-6px, 8px) rotate(-0.6deg); }
    75% { transform: translate(12px, -4px) rotate(1.2deg); }
}

.departments-management-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(125deg, 
        rgba(26, 95, 122, 0.06) 0%, 
        rgba(51, 217, 153, 0.04) 50%, 
        rgba(26, 95, 122, 0.02) 100%);
}

.departments-management-hero .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem 2rem;
}

.departments-management-hero .hero-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(51, 217, 153, 0.3);
    animation: departmentIconFloat 4s ease-in-out infinite;
    border: 2px solid rgba(51, 217, 153, 0.2);
}

@keyframes departmentIconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

.departments-management-hero .hero-text {
    flex: 1;
}

.departments-management-hero .hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    /* Fallback for browsers that don't support background-clip */
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Ensure visibility with fallback */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .departments-management-hero .hero-title {
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--text-main);
    }
}

.departments-management-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    font-weight: 400;
}

.departments-management-hero .hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.departments-management-hero .feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(26, 95, 122, 0.1);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(26, 95, 122, 0.2);
    transition: all 0.3s ease;
}

.departments-management-hero .feature-tag:hover {
    background: rgba(26, 95, 122, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.2);
}

.departments-management-hero .hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1rem;
    padding: 0 2.5rem 2.5rem;
    justify-content: flex-end;
}

.departments-management-hero .hero-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
}

.departments-management-hero .hero-btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(51, 217, 153, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.departments-management-hero .hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(51, 217, 153, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
}

.departments-management-hero .hero-btn.secondary {
    background: var(--card-bg);
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.2);
}

.departments-management-hero .hero-btn.secondary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
}

/* Page Header Enhancements (Fallback) */
.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header h1 i {
    color: var(--primary);
    font-size: 2rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Loading and Alert Styles */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-error {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border: 2px solid #fc8181;
}

.alert-info {
    background: linear-gradient(135deg, #bee3f8, #90cdf4);
    color: #2b6cb0;
    border: 2px solid #63b3ed;
}

@media (max-width: 768px) {
    .student-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .student-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .student-actions {
        justify-content: stretch;
    }
    
    .student-actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    
    .view-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .student-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header h1 {
        font-size: 1.875rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Hero Section Mobile Styles */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem 1.5rem;
        gap: 1.5rem;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        padding: 0 1.5rem 2rem;
        gap: 0.75rem;
    }
    
    .hero-btn {
         justify-content: center;
         padding: 0.875rem 1.5rem;
     }
     
     /* Departments Hero Section Mobile Styles */
     .departments-management-hero .hero-content {
         flex-direction: column;
         text-align: center;
         padding: 2rem 1.5rem 1.5rem;
         gap: 1.5rem;
     }
     
     .departments-management-hero .hero-icon {
         width: 60px;
         height: 60px;
         font-size: 2rem;
     }
     
     .departments-management-hero .hero-title {
         font-size: 2rem;
     }
     
     .departments-management-hero .hero-subtitle {
         font-size: 1.1rem;
     }
     
     .departments-management-hero .hero-features {
         justify-content: center;
     }
     
     .departments-management-hero .feature-tag {
         font-size: 0.8rem;
         padding: 0.4rem 0.8rem;
     }
     
     .departments-management-hero .hero-actions {
         flex-direction: column;
         padding: 0 1.5rem 2rem;
         gap: 0.75rem;
     }
     
     .departments-management-hero .hero-btn {
           justify-content: center;
           padding: 0.875rem 1.5rem;
       }
       
       /* Departments Tabs Mobile Styles */
       .departments-tabs {
           flex-direction: column;
           gap: 0.25rem;
           padding: 0.25rem;
       }
       
       .departments-tab-btn {
           padding: 0.875rem 1rem;
           font-size: 0.9rem;
       }
       
       .departments-tab-panel {
           padding: 1.5rem;
           border-radius: 16px;
       }
       
       .section-header {
           margin-bottom: 1.5rem;
       }
       
       .section-header h3 {
           font-size: 1.25rem;
       }
       
       .card-content {
           padding: 1.25rem;
       }
   }

/* Departments Tabs Styling */
.departments-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: var(--background);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.departments-tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.departments-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.departments-tab-btn.active {
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.departments-tab-btn.active::before {
    opacity: 0.1;
}

.departments-tab-btn:hover:not(.active) {
    background: var(--card-bg);
    color: var(--text-main);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Departments Tab Panels */
.departments-tab-panel {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.departments-tab-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0.6;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced Card Styling */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.card-content li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}

.card-content li:last-child {
    border-bottom: none;
}

.card-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Internship Management Hero Section */
.internship-management-hero {
    position: relative;
    background: var(--card-bg);
    border-radius: 24px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(51, 217, 153, 0.08);
    border: 1px solid var(--border);
}

.internship-management-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.internship-management-hero .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(51, 217, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 95, 122, 0.08) 0%, transparent 50%),
        linear-gradient(50deg, transparent 40%, rgba(51, 217, 153, 0.03) 50%, transparent 60%);
    background-size: 190px 190px, 160px 160px, 110px 110px;
    animation: internshipPatternMove 22s ease-in-out infinite;
}

@keyframes internshipPatternMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(12px, -8px) rotate(1deg); }
    60% { transform: translate(-8px, 10px) rotate(-0.7deg); }
}

.internship-management-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(130deg, 
        rgba(51, 217, 153, 0.06) 0%, 
        rgba(26, 95, 122, 0.04) 50%, 
        rgba(51, 217, 153, 0.02) 100%);
}

.internship-management-hero .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem 2rem;
}

.internship-management-hero .hero-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(51, 217, 153, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

.internship-management-hero .hero-text {
    flex: 1;
}

.internship-management-hero .hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    /* Fallback for browsers that don't support background-clip */
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Ensure visibility with fallback */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .internship-management-hero .hero-title {
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--text-main);
    }
}

.internship-management-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    font-weight: 400;
}

.internship-management-hero .hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.internship-management-hero .feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(51, 217, 153, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(51, 217, 153, 0.2);
    transition: all 0.3s ease;
}

.internship-management-hero .feature-tag:hover {
    background: rgba(51, 217, 153, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 217, 153, 0.2);
}

.internship-management-hero .hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1rem;
    padding: 0 2.5rem 2.5rem;
    justify-content: flex-end;
}

.internship-management-hero .hero-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
}

.internship-management-hero .hero-btn.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(51, 217, 153, 0.3);
}

.internship-management-hero .hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(51, 217, 153, 0.4);
}

.internship-management-hero .hero-btn.secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.internship-management-hero .hero-btn.secondary:hover {
    background: var(--background);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 217, 153, 0.15);
}

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

.internship-stats .stat-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.internship-stats .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.internship-stats .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.internship-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Enhanced Filters */
.filters-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.filter-group select,
.filter-group input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 217, 153, 0.1);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input-wrapper input {
    padding-left: 44px;
}

.view-buttons {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.view-btn {
    background: var(--background);
    border: none;
    padding: 12px 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary);
    color: white;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.results-info {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.results-info span {
    font-weight: 600;
    color: var(--text-main);
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.9rem;
}

/* Enhanced Internships Grid */
.internships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.internships-grid.list-view {
    grid-template-columns: 1fr;
}

.internship-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.internship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.internship-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(51, 217, 153, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.internship-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(51, 217, 153, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.internship-card:hover::before {
    opacity: 1;
}

.internship-card:hover::after {
    opacity: 1;
}

.internship-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.internship-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.internship-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(51, 217, 153, 0.3);
}

.internship-details-header {
    flex: 1;
}

.internship-details-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.internship-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.internship-actions-header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.status-badge.active {
    background: rgba(51, 217, 153, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.status-badge.draft {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: #fbbf24;
}

.internship-details {
    margin-bottom: 16px;
}

.internship-details p {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.internship-details strong {
    color: var(--text-main);
}

.internship-description {
    margin-bottom: 20px;
}

.internship-description p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.internship-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.internship-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    border-radius: 10px;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border: 2px dashed var(--border);
    border-radius: 16px;
    margin-top: 40px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(51, 217, 153, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--primary);
}

.empty-state h3 {
    margin: 0 0 12px 0;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 24px 0;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design for Internships */
@media (max-width: 768px) {
    .internships-hero {
        padding: 24px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-text h1.hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        width: 100%;
    }
    
    .btn-hero {
        flex: 1;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .internships-grid {
        grid-template-columns: 1fr;
    }
}