/* ===== GLOBAL STYLES ===== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 40px;
}

/* ===== PAGE TITLES ===== */
h2, h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* ===== FORM CONTAINER ===== */
form {
    background: #ffffff;
    max-width: 450px;
    margin: 0 auto;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

label {
    font-weight: 600;
    color: #444;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px -15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
    text-align: center;
}

input:focus,
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 4px rgba(37,99,235,0.5);
    outline: none;
}

/* ===== BUTTONS ===== */
button {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

button:hover {
    background: #1e4fc9;
}

/* ===== SUCCESS MESSAGE ===== */
.success {
    text-align: center;
    color: green;
    font-weight: bold;
    margin-top: 20px;
}

/* ===== TABLE STYLES ===== */
table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

table th {
    background: #2563eb;
    color: white;
    padding: 12px;
    font-size: 16px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

table tr:nth-child(even) {
    background: #f0f4ff;
}

table tr:hover {
    background: #e3eaff;
}

/* ===== RESULTS SECTION ===== */
.results {
    margin-top: 20px;
}

/* ===== NAVIGATION BAR  ===== */
.navbar {
    width: 100%;
    background: #1e3a8a; /* Deep blue */
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: sticky;
    top:0;
    z-index: 999;
}

.navbar a {
    color: #e0e7ff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s ease;
}

/* Hover effect */
.navbar a:hover {
    background: #3748ce;
    color: white;
    transform: translateY(-2px);
}

/* Active page button */
.navbar a.active {
    background: #2563eb;   /* Bright blue (active) */
    color: white;
    box-shadow: 0 3px 10px rgba(37,99,235,0.4);
}
