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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 75%, #059669 100%);
    min-height: 100vh;
    overflow-x: hidden;
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Removed loader styles */

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 75%, #059669 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-page.hidden {
    display: none;
}

.login-container {
    width: 100%;
    max-width: 450px;
    z-index: 1;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.logo-large {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.institute-address {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.6;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.user-id-curved {
    border-radius: 999px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
}

.password-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pin-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.pin-input {
    width: 100%;
    height: 54px;
    border: 2px solid rgba(224, 224, 224, 0.85);
    border-radius: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    outline: none;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.pin-input:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}

.pin-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

@media (max-width: 420px) {
    .pin-wrapper {
        gap: 8px;
    }
    .pin-input {
        height: 48px;
        font-size: 16px;
    }
}

.login-box h2 {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.form-group:focus-within label {
    transform: translateX(5px);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(148, 163, 184, 0.55);
    border-radius: 18px;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.10),
        0 4px 12px rgba(14, 165, 233, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -2px 0 rgba(15, 23, 42, 0.06);
    position: relative;
}

.form-group select:hover,
.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.12),
        0 6px 16px rgba(14, 165, 233, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -2px 0 rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 
        0 0 0 4px rgba(14, 165, 233, 0.18),
        0 18px 45px rgba(15, 23, 42, 0.14),
        0 6px 18px rgba(14, 165, 233, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(100, 116, 139, 0.85);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 400px;
    height: 400px;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.6);
    animation: none;
    background-position: 100% 50%;
}

.login-btn:active {
    transform: translateY(-1px) scale(1);
}

.error-message {
    margin-top: 15px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    color: #c33;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: none;
    border-left: 4px solid #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.error-message.show {
    display: block;
    animation: shake 0.5s;
}

.success-message {
    margin-top: 15px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    animation: fadeInUp 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 25%, #e0f2fe 50%, #dbeafe 75%, #f0f9ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 25s ease infinite;
    position: relative;
}

.dashboard::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-content {
    position: relative;
    z-index: 1;
}

.dashboard-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 75%, #059669 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s infinite;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s infinite reverse;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.dashboard-header h1 {
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: block;
    min-width: 40px;
    min-height: 40px;
}

.user-profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.user-info span {
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0ea5e9;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    border-color: white;
}

.dashboard-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInContent 0.6s ease-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    padding: 4px 0;
    perspective: 1200px;
}

.dashboard-card {
    background:
        linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%) padding-box,
        linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(14, 165, 233, 0.55), rgba(16, 185, 129, 0.55)) border-box;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 
        0 10px 28px rgba(14, 165, 233, 0.14),
        0 6px 16px rgba(16, 185, 129, 0.10),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4, #14b8a6, #10b981, #0ea5e9);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    animation: gradientShift 3s ease infinite;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.9);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.dashboard-card:hover {
    transform: translateY(-10px) scale(1.02) rotateX(2deg);
    box-shadow: 
        0 26px 70px rgba(14, 165, 233, 0.32),
        0 16px 40px rgba(16, 185, 129, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset;
    background:
        linear-gradient(135deg, #ffffff 0%, #ecfeff 100%) padding-box,
        linear-gradient(135deg, rgba(168, 85, 247, 0.75), rgba(14, 165, 233, 0.75), rgba(16, 185, 129, 0.75)) border-box;
}

.dashboard-card:active {
    transform: translateY(-8px) scale(1.01);
}

.dashboard-card h3 {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.dashboard-card:hover h3 {
    transform: translateX(5px);
}

.dashboard-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(16, 185, 129, 0.18) 100%);
    box-shadow:
        0 10px 22px rgba(14, 165, 233, 0.18),
        0 6px 14px rgba(16, 185, 129, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.2));
    transition: all 0.3s ease;
}

.dashboard-grid .dashboard-card:nth-child(4n + 1) .dashboard-card-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(236, 72, 153, 0.18) 60%, rgba(249, 115, 22, 0.16) 100%);
}

.dashboard-grid .dashboard-card:nth-child(4n + 2) .dashboard-card-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(6, 182, 212, 0.18) 60%, rgba(20, 184, 166, 0.16) 100%);
}

.dashboard-grid .dashboard-card:nth-child(4n + 3) .dashboard-card-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(16, 185, 129, 0.18) 60%, rgba(132, 204, 22, 0.16) 100%);
}

.dashboard-grid .dashboard-card:nth-child(4n + 4) .dashboard-card-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(249, 115, 22, 0.18) 60%, rgba(239, 68, 68, 0.16) 100%);
}

.dashboard-card:hover .dashboard-card-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.5));
}

.dashboard-card p {
    color: #666;
    line-height: 1.6;
    font-size: 13px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.dashboard-card:hover p {
    color: #555;
}

/* Compact navigation on tablets and phones */
@media (max-width: 960px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }
    .dashboard-card {
        padding: 16px;
        border-radius: 12px;
    }
    .dashboard-card h3 {
        font-size: 15px;
        gap: 8px;
    }
    .dashboard-card-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .dashboard-card p {
        font-size: 12px;
    }
}

/* Icon-priority nav on small mobile */
@media (max-width: 640px) {
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px 8px;
        align-items: center;
    }
    .dashboard-card {
        padding: 12px 16px;
        border-radius: 16px;
        width: 100%;
        max-width: 280px;
        min-height: 60px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        background: linear-gradient(145deg, #ffffff, #f0fdfa);
        box-shadow:
            4px 4px 8px rgba(14, 165, 233, 0.15),
            -4px -4px 8px rgba(255, 255, 255, 0.9),
            inset 1px 1px 2px rgba(255, 255, 255, 0.6),
            inset -1px -1px 2px rgba(14, 165, 233, 0.1);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    .dashboard-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.15), transparent 50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .dashboard-card:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow:
            6px 6px 12px rgba(14, 165, 233, 0.2),
            -6px -6px 12px rgba(255, 255, 255, 0.95),
            inset 1px 1px 3px rgba(255, 255, 255, 0.7),
            inset -1px -1px 3px rgba(14, 165, 233, 0.15);
    }
    .dashboard-card:hover::before {
        opacity: 1;
    }
    .dashboard-card h3 {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        font-size: 14px;
        line-height: 1.2;
        text-align: left;
        margin: 0;
        color: #1e293b;
    }
    .dashboard-card p {
        display: none;
    }
    .dashboard-card-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0ea5e9, #06b6d4);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow:
            2px 2px 4px rgba(14, 165, 233, 0.3),
            inset 1px 1px 2px rgba(255, 255, 255, 0.3);
        flex-shrink: 0;
    }
}

/* Table Styles */
.data-table {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(14, 165, 233, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 25px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.data-table th {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 75%, #059669 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.data-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    transition: all 0.3s ease;
    font-size: 14px;
}

.data-table tr {
    transition: all 0.3s ease;
}

.data-table tr:hover {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

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

/* Form Styles */
.form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 
        0 8px 30px rgba(14, 165, 233, 0.15),
        0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 25px;
    border: 2px solid rgba(14, 165, 233, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease-out;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4, #14b8a6, #10b981, #0ea5e9);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.modal {
    width: 100%;
    max-width: 860px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border-radius: 24px;
    box-shadow:
        0 18px 50px rgba(14, 165, 233, 0.25),
        0 8px 24px rgba(15, 23, 42, 0.35);
    border: 2px solid rgba(14, 165, 233, 0.2);
    padding: 26px 30px 28px;
    position: relative;
}

.modal-overlay .modal {
    display: block;
    position: relative;
    left: auto;
    top: auto;
    height: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

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

.modal-header h3 {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
}

.modal-close-btn {
    border: none;
    background: rgba(15, 23, 42, 0.05);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    transition: all 0.25s ease;
}

.modal-close-btn:hover {
    background: rgba(15, 23, 42, 0.1);
    transform: translateY(-1px) scale(1.03);
}

.modal-body {
    margin-top: 4px;
}

.id-card-preview-wrapper {
    margin-top: 24px;
    padding: 20px 22px 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ecfeff 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(148, 163, 184, 0.25);
}

.id-card-preview-wrapper h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 14px;
}

#studentIdCardCanvas {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow:
        0 14px 40px rgba(15, 23, 42, 0.35),
        0 4px 10px rgba(148, 163, 184, 0.4);
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18),
        0 6px 16px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.22),
        0 10px 24px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(14, 165, 233, 0.25),
        0 18px 45px rgba(15, 23, 42, 0.18),
        0 6px 16px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 30px 70px rgba(14, 165, 233, 0.44),
        0 12px 28px rgba(16, 185, 129, 0.26),
        0 6px 16px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 0, 0, 0.16);
    animation: none;
    background-position: 100% 50%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 28px 65px rgba(16, 185, 129, 0.36),
        0 10px 24px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(0, 0, 0, 0.16);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-danger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 28px 65px rgba(239, 68, 68, 0.34),
        0 10px 24px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(0, 0, 0, 0.16);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-info:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 28px 65px rgba(59, 130, 246, 0.34),
        0 10px 24px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

 .btn-warning {
     background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
     color: white;
     border: 2px solid transparent;
 }

 .btn-warning:hover {
     transform: translateY(-3px) scale(1.05);
     box-shadow:
         0 28px 65px rgba(245, 158, 11, 0.32),
         0 10px 24px rgba(15, 23, 42, 0.16),
         inset 0 1px 0 rgba(255, 255, 255, 0.18),
         inset 0 -2px 0 rgba(0, 0, 0, 0.16);
     background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
 }

 .btn-secondary {
     background: linear-gradient(135deg, #64748b 0%, #475569 100%);
     color: white;
     border: 2px solid transparent;
 }

 .btn-secondary:hover {
     transform: translateY(-3px) scale(1.05);
     box-shadow:
         0 26px 60px rgba(100, 116, 139, 0.30),
         0 10px 24px rgba(15, 23, 42, 0.16),
         inset 0 1px 0 rgba(255, 255, 255, 0.18),
         inset 0 -2px 0 rgba(0, 0, 0, 0.16);
     background: linear-gradient(135deg, #475569 0%, #334155 100%);
 }

.hidden {
    display: none !important;
}

.self-checkin-section {
    margin-top: 18px;
}

.self-checkin-btn {
    margin-top: 6px;
}

.self-checkin-note {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
}

.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.qr-modal {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 25%, #14b8a6 50%, #10b981 100%);
}

.qr-modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
}

.qr-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.qr-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qr-video-wrap {
    padding: 16px 18px 0;
}

#selfCheckinQrVideo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    background: #0f172a;
}

.qr-status {
    padding: 12px 18px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
}

.qr-manual {
    padding: 0 18px 18px;
    display: flex;
    gap: 10px;
}

.qr-manual input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid rgba(224, 224, 224, 0.8);
    border-radius: 14px;
    font-size: 14px;
    outline: none;
}

.qr-manual input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.qr-action-btn {
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
}

.qr-action-btn:hover {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

