:root {
    /* Modern Color Palette */
    --primary-color: #795ceb;
    --primary-light: #947aeb;
    --primary-dark: #583dc2;
    --bg-base: #f1f3fa;
    --bg-panel: #ffffff;
    
    /* Text colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;
    
    /* UI colors */
    --border-color: #e2e8f0;
    --search-bg: #f8fafc;
    --sidebar-menu-hover: rgba(255, 255, 255, 0.1);
    --sidebar-menu-active: #ffffff;
    
    /* Accent Colors for cards */
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-rose: #f43f5e;
    --accent-indigo: #6366f1;

    /* Shadows and Effects */
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(121, 92, 235, 0.15);
    --shadow-strong: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --radius-lg: 20px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .brand-name, .nav-label {
    font-family: var(--font-heading);
}

.dashboard-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    gap: 32px;
    min-height: 100vh;
}

/* ================== SIDEBAR ================== */
.sidebar {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    width: 280px;
    border-radius: var(--radius-xl);
    flex-shrink: 0;
    position: relative;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.sidebar-inner {
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

/* Sidebar Logo */
.logo-container {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sidebar .brand img {
    filter: brightness(0) invert(1);
}

.svg-logomark {
    width: 48px;
    height: 48px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.brand-top-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.brand-triple {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.brand-one {
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4em;
    padding-left: 2px;
    margin-top: 6px;
}

/* Mobile Brand Specific Override */
.mobile-brand .mobile-triple {
    color: var(--text-main);
}

.mobile-brand .mobile-one {
    color: var(--primary-color);
}

/* Sidebar Close Button */
.sidebar-close {
    display: none;
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Sidebar Navigation */
.nav-menu {
    flex: 1;
    z-index: 2;
}

.nav-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-left: 16px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    background-color: var(--sidebar-menu-hover);
    color: var(--text-light);
}

.nav-menu a:hover i {
    transform: scale(1.15);
}

.nav-menu li.active a {
    background-color: var(--sidebar-menu-active);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-footer {
    z-index: 2;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: rgba(244, 63, 94, 0.15);
    color: #ffd0d6;
}

/* ================== MAIN CONTENT ================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 10px;
    gap: 32px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: space-between;
}

/* Search Bar */
.search-container {
    position: relative;
    background-color: var(--bg-panel);
    border-radius: 40px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 800px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.08); /* Highlight added */
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background-color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(121, 92, 235, 0.1);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: var(--font-body);
}

.search-input::placeholder {
    color: #94a3b8;
}

/* Buttons */
.icon-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-rose);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-base);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: 16px;
    transition: background 0.3s ease;
    margin-left: auto;
}

.user-profile:hover {
    background-color: rgba(0,0,0,0.03);
}

.profile-info-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.user-course {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-img-wrap {
    position: relative;
}

.profile-img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background-color: var(--accent-green);
    border-radius: 50%;
    border: 2px solid var(--bg-base);
}

/* ================== CONTENT BODY ================== */
.content-body {
    background-color: var(--bg-panel);
    border-radius: var(--radius-xl);
    padding: 32px;
    flex: 1;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(to right, #6366f1, #8b5cf6, #d946ef);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(139, 92, 246, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-banner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-banner p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.hero-decoration {
    position: absolute;
    right: 40px;
    font-size: 8rem;
    color: rgba(255,255,255,0.15);
    transform: rotate(15deg);
    z-index: 1;
}

.glow-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 700;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-base);
    padding: 4px;
    border-radius: 12px;
}

.tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--bg-panel);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Modern Grid */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 24px;
}

/* Glass Cards */
.glass-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: translateX(-100%);
    transition: 0.6s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.glass-card:hover::before {
    transform: translateX(100%);
}

/* Resource Cards specifically */
.resource-card {
    background: linear-gradient(145deg, var(--bg-panel) 0%, #ffffff 100%);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.7), transparent);
    transform: translateX(-100%);
    transition: 0.6s ease;
    z-index: 1;
}

/* Best Project Grid & Cards */
.best-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.best-project-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.best-project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.bp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.bp-user-info {
    display: flex;
    flex-direction: column;
}

.bp-name {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.1rem;
}

.bp-college {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bp-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.bp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.bp-tag {
    background-color: #f5f3ff;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.bp-btn:hover {
    background-color: var(--primary-dark);
}

.bp-btn i {
    margin-left: 8px;
}

.page-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.page-title-bar {
    width: 4px;
    height: 28px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.page-title-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}


.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(121, 92, 235, 0.15);
    border-color: rgba(121, 92, 235, 0.3);
}

.resource-card:hover::before {
    transform: translateX(100%);
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.resource-card:hover .resource-icon {
    transform: scale(1.1) rotate(-5deg);
}

.resource-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
}

.resource-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.resource-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.resource-link i {
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-card:hover .resource-link {
    color: var(--primary-dark);
}

.resource-card:hover .resource-link i {
    transform: translateX(6px);
}

.resource-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    background: var(--bg-base);
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.glass-card:hover .card-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

/* Icon Colors */
.icon-blue { background: #eff6ff; color: var(--accent-blue); }
.icon-green { background: #ecfdf5; color: var(--accent-green); }
.icon-orange { background: #fffbeb; color: var(--accent-orange); }
.icon-purple { background: #f5f3ff; color: var(--accent-purple); }
.icon-rose { background: #fff1f2; color: var(--accent-rose); }
.icon-indigo { background: #eef2ff; color: var(--accent-indigo); }

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-action {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.glass-card:hover .card-action {
    opacity: 1;
    transform: translateX(0);
    background: var(--primary-color);
    color: white;
}

/* Highlighted Special Card */
.highlighted {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: none;
    color: white;
}

.highlighted .card-content h3 {
    color: white;
}

.highlighted .card-content p {
    color: #cbd5e1;
}

.highlighted .icon-purple {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.sparkles {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fbbf24;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 10px #fbbf24); }
    100% { transform: scale(1); opacity: 0.8; }
}

/* ================== TABLE LAYOUT ================== */
.table-banner {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--text-light);
    text-align: center;
    padding: 18px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.table-container {
    background-color: var(--bg-panel);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.data-table th, .data-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    background-color: transparent;
}

.data-table td {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.data-table tbody tr {
    transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(121, 92, 235, 0.05);
}

/* ================== ATTENDANCE SPECIFIC ================== */
.attendance-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

.attendance-info {
    position: sticky;
    top: 24px;
}

.attendance-info.glass-card {
    padding: 32px;
    background: linear-gradient(145deg, var(--bg-panel) 0%, #ffffff 100%);
    border: 1px solid rgba(255,255,255,0.7);
}

.info-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px -5px rgba(121, 92, 235, 0.4);
}

.attendance-info h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.attendance-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.attendance-rules {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.attendance-rules li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.attendance-rules li i {
    color: var(--accent-green);
    font-size: 1.25rem;
    margin-top: 3px;
}

.attendance-rules li span {
    color: var(--text-main);
    line-height: 1.5;
    font-size: 0.95rem;
}

.attendance-rules li span strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.info-alert {
    background: #fff1f2;
    border: 1px dashed #fda4af;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-alert i {
    color: var(--accent-rose);
    margin-top: 2px;
    font-size: 1.1rem;
}

.info-alert span {
    color: #9f1239;
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 600;
}

.attendance-form.glass-card {
    padding: 0;
    overflow: hidden;
    display: block;
    background: #ffffff;
}

.attendance-form iframe {
    width: 100%;
    min-height: 900px;
    display: block;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ================== RESPONSIVE DESIGN ================== */
.mobile-header {
    display: none;
}
.sidebar-overlay { 
    display: none; 
}

@media screen and (max-width: 1200px) {
    .modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .best-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .dashboard-container {
        padding: 16px;
        gap: 0;
        flex-direction: column;
    }
    
    .attendance-wrapper {
        grid-template-columns: 1fr;
    }
    
    .attendance-info {
        position: static;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0 32px 32px 0;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        max-width: 80%;
    }
    
    .sidebar.active {
        left: 0;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(15, 23, 42, 0.6);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .mobile-header {
        display: flex;
        background: var(--bg-panel);
        border-radius: var(--radius-xl);
        padding: 16px 24px;
        margin-bottom: 16px;
        align-items: center;
        justify-content: space-between;
        box-shadow: var(--shadow-soft);
        width: 100%;
        align-self: stretch;
    }
    
    .hamburger {
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        background: var(--bg-base);
        padding: 10px 14px;
        border-radius: 12px;
    }

    .main-content {
        gap: 16px;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 4px; /* Reduced vertical spacing on mobile */
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-container {
        width: auto;
        flex: 1;
        max-width: 300px;
    }
    
    .page-title-container,
    .user-profile {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .hero-banner {
        padding: 30px 24px;
    }

    .hero-banner h2 {
        font-size: 1.4rem;
    }

    .hero-decoration {
        opacity: 0.1;
        right: -20px;
    }

    .content-body {
        padding: 0 16px 20px;
    }

    .modern-grid {
        grid-template-columns: 1fr;
    }

    .best-projects-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        display: flex;
        width: 100%;
        max-width: none;
        margin-bottom: 8px; /* Reduced to avoid large gaps on mobile */
        border-radius: 24px;
    }

    .table-container {
        background-color: transparent;
        box-shadow: none;
        overflow: visible;
    }

    /* Responsive Data Table -> Card Format */
    .data-table thead {
        display: none;
    }
    
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    
    .data-table tr {
        margin-bottom: 16px;
        background-color: var(--bg-panel);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 16px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
    
    .data-table td {
        position: relative;
        padding: 10px 0;
        border-bottom: 1px solid var(--bg-base);
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    
    .data-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .data-table td:first-child {
        padding-top: 0;
    }
    
    .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary-dark);
        font-family: var(--font-heading);
        font-size: 0.85rem;
        text-align: left;
    }
}/* Added for Mobile Responsiveness */
@media (max-width: 768px) {
    .admin-section {
        overflow-x: auto;
        padding: 1rem !important;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .form-row {
        flex-direction: column !important;
    }
    .edit-form-container {
        width: 95% !important;
        padding: 1.5rem !important;
    }
    /* Fix attendance filter form on mobile */
    .filter-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .filter-form > div {
        width: 100% !important;
    }
}
