@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
    color: #1a1a2e;
}

/* HEADER */
header {
    background: #ffffff;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    margin-right: 20px;
}

nav a:hover {
    color: #7f5af0;
}

nav img {
    height: 50px;
    vertical-align: middle;
}

/* HERO SECTION */
section.hero {
    background: linear-gradient(135deg, #a78bfa 0%, #4ade80 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
}

.hero p {
    font-size: 1.1em;
    opacity: 0.95;
    margin-bottom: 20px;
}

/* BUTTON */
.btn,
button {
    background: #7f5af0;
    color: white;
    padding: 14px 30px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover,
button:hover {
    background: #4ade80;
    color: #fff;
}

a.btn {
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

/* CONTENT */
.content,
form {
    max-width: 700px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* FORMS */
input, textarea, select {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    color: #1a1a2e;
    font-size: 1em;
    transition: 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #7f5af0;
    background: #ffffff;
}

input::placeholder, textarea::placeholder {
    color: #999;
}

/* FOOTER */
footer {
    background: #f1f5f9;
    text-align: center;
    padding: 30px;
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 50px;
}

/* LOGIN */
.login-container {
    max-width: 420px;
    margin: 100px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.login-container h2 {
    text-align: center;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 30px;
}

.login-container input,
.login-container button {
    font-size: 1em;
    padding: 14px;
}

/* BADGES */
.badge-valid {
    color: #10b981;
    font-weight: bold;
}
.badge-invalid {
    color: #ef4444;
    font-weight: bold;
}
tr.valid-row { background-color: #e8fef1; }
tr.invalid-row { background-color: #ffeaea; }
tr.missing-attendance { background-color: #fff7e6; }

/* MESSAGES */
.success-message {
    color: #10b981;
    font-weight: 600;
}
.error-message {
    color: #ef4444;
    font-weight: 600;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav a {
        margin-right: 0;
        padding: 8px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .content,
    .login-container,
    form {
        padding: 25px;
        margin: 30px auto;
        border-radius: 12px;
    }

    .btn,
    button,
    input,
    textarea,
    select {
        font-size: 1em;
        padding: 12px;
    }

    .login-container h2 {
        font-size: 1.5em;
    }
}
