* {
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

input,
select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

button {
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #16325c;
}

#message {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

.success {
    color: green;
}

.error {
    color: red;
}

footer {
    margin-top: 25px;
    color: white;
    font-size: 14px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1e40af;
    color: white;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}


/* Menu items */

.navItems {
    display: flex;
    gap: 20px;
}

.navItems a {
    color: white;
    text-decoration: none;
}


/* Hamburger */

.hamburgerIcon {
    display: none;
    font-size: 26px;
    cursor: pointer;
}


/* Mobile view */

@media (max-width: 768px) {
    .navItems {
        position: absolute;
        top: 60px;
        right: 0;
        background: #1e40af;
        width: 100%;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
    }
    .navItems span {
        margin: 10px 0;
    }
    .hamburgerIcon {
        display: block;
    }
}

body {
    font-family: Arial, sans-serif;
    background: #f2f4f7;
}

.card {
    max-width: 500px;
    background: #fff;
    padding: 20px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-top: 10px;
}

input,
button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

button {
    margin-top: 15px;
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.result-card {
    margin-top: 20px;
    border-top: 2px solid #ddd;
    padding-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

table th {
    background: #f0f0f0;
}

.total {
    font-weight: bold;
    background: #fafafa;
}

.final {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}

.pass {
    color: green;
}

.fail {
    color: red;
}

.download-btn {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    background: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

@media print {
    body * {
        visibility: hidden;
    }
    .result-card,
    .result-card * {
        visibility: visible;
    }
    .download-btn {
        display: none;
    }
    .result-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}