/* --- 1. GLOBAL SETTINGS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --primary-purple: #6c5ce7;
    --pastel-purple: #dcd6f7;
    --deep-purple: #424874;
    --soft-bg: #f4eeff;
    --glass: rgba(255, 255, 255, 0.95);
    --white: #ffffff;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

body {
    background: var(--soft-bg);
    /* Animated Gradient Background */
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(108, 92, 231, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(220, 214, 247, 0.3) 0%, transparent 45%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical Center */
    align-items: center;     /* Horizontal Center */
    overflow-x: hidden;
}

/* --- 2. LOGIN PAGE & MODAL CONTENT --- */
.brand-title {
    font-size: 4.5rem;
    color: var(--deep-purple);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.login-box-tall {
    background: var(--glass);
    width: 400px;
    padding: 50px 40px;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(66, 72, 116, 0.15);
    border: 1px solid var(--white);
    backdrop-filter: blur(10px);
}

.login-box-tall h2 {
    color: var(--deep-purple);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 700;
}

.login-box-tall p {
    text-align: center;
    color: #8a8fb1;
    font-size: 0.9rem;
    margin-bottom: 35px;
}

.input-group { margin-bottom: 22px; }

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--deep-purple);
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 15px;
    outline: none;
    background: var(--white);
    font-size: 0.95rem;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.2);
}

.login-btn-creative {
    width: 100%;
    padding: 16px;
    background: var(--deep-purple);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.4s;
}

.login-btn-creative:hover {
    background: #2d325a;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(66, 72, 116, 0.2);
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
}

/* --- 3. DASHBOARD STRUCTURE --- */
.dashboard-card {
    background: var(--white);
    width: 90%;
    max-width: 1100px;
    padding: 40px;
    border-radius: 35px;
    box-shadow: 0 20px 50px rgba(66, 72, 116, 0.08);
    margin-top: 20px;
}

/* Dashboard Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

th {
    text-align: left;
    padding: 15px;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--pastel-purple);
}

td {
    padding: 18px 15px;
    background: #fff;
    border-bottom: 1px solid #f8f8f8;
    color: var(--deep-purple);
}

/* --- 4. STATUS PILLS & ACTION BUTTONS --- */
.status {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

.status.pending { background: #fff8e1; color: #f39c12; border: 1px solid #fceec7; }
.status.fully_approved { background: #e8f5e9; color: #2ecc71; border: 1px solid #c8e6c9; }
.status.rejected { background: #ffebee; color: #e74c3c; border: 1px solid #ffcdd2; }
.status.hod_approved { background: #e3f2fd; color: #3498db; border: 1px solid #bbdefb; }

.action-btns button {
    margin-right: 8px;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.btn-approve { background: #e8f5e9; color: #2ecc71; }
.btn-reject { background: #ffebee; color: #e74c3c; }

/* --- 5. MODAL LOGIC --- */
.modal {
    display: none; /* Controlled by JS */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(66, 72, 116, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: var(--deep-purple);
    cursor: pointer;
    margin-top: -10px;
}

/* Utility badge for Student IDs */
.id-badge {
    background: var(--pastel-purple);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
}