/* -------------------------------------------------
   Global reset & base styles
   ------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
    padding: 20px;
}

/* -------------------------------------------------
   Header – blue bar with title left, navigation right
   ------------------------------------------------- */
header {
    background: #0066cc;          /* blue background */
    color: #fff;
    padding: 10px 20px;
    display: flex;                /* flex layout */
    align-items: center;
    justify-content: space-between; /* title left, nav right */
    margin-bottom: 20px;
}

/* Title inside header */
header h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Navigation links */
nav {
    display: flex;                /* horizontal list */
    gap: 15px;                     /* space between links */
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------
   Main content layout
   ------------------------------------------------- */
main {
    max-width: 800px;
    margin: auto;
}

/* Sections spacing */
section {
    margin-bottom: 30px;
}

/* Form label styling */
label {
    display: block;
    margin: 10px 0;
}

/* Inputs, selects, buttons */
input,
select,
button {
    padding: 8px;
    width: 100%;
    max-width: 300px;
    font-size: 0.95rem;
}

/* Button appearance */
button {
    background: #0066cc;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

button:hover {
    background: #004999;
}

/* Result box */
#result {
    background: #e0ffe0;
    border: 1px solid #8f8;
    padding: 15px;
    margin-top: 20px;
}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
}
