@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Manrope', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
    color: #222;
}

/* Header */
header {
    width: 100%;
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    margin: 1em;
}

.title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title a {
    margin: 1em;
    color: white;
    text-decoration: none;
    background-color: #333;
    border-radius: 0.5em;
    padding: 0.5em;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-around;
}

nav a {
    flex: 1 1 33%;
    padding: 0.75rem 0;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

nav a:hover, nav a:active {
    background-color: #333;
}

/* Main content */
main {
    flex: 1;
    width: 100%;
    padding: 1rem;
}

section {
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

thead {
    background-color: #f0f0f0;
    font-weight: 600;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

/* Footer */
footer {
    width: 100%;
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

/* Buttons */
button {
    display: block;
    padding: 0.6rem 1.2rem;
    margin: 2em auto;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #487662;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:active {
    background-color: #50af86;
}

/* Inputs and selects */
input, select {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #ccc;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input:focus, select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Small screen adjustment */
@media (max-width: 400px) {
    button, input, select {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
}
