:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --background-light: #f4f6f7;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    padding: 30px 0;
    font-weight: 600;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

.home-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.home-button {
    text-decoration: none;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.home-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-color);
}

#form-container, #table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08), 
        0 5px 10px rgba(0, 0, 0, 0.04);
    margin: 30px auto;
    max-width: 800px;
    padding: 30px;
    transition: all var(--transition-speed) ease;
}

#form-container:hover, #table-container:hover {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1), 
        0 5px 15px rgba(0, 0, 0, 0.06);
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

form label {
    grid-column: span 2;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

form select, form button {
    grid-column: span 2;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
    appearance: none;
}

form select {
    background: url('data:image/svg+xml;utf8,<svg fill="%232c3e50" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') no-repeat right 10px center;
    background-size: 30px;
    padding-right: 40px;
}

form select:focus, form button:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

form button {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

table th, table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
    transition: background-color var(--transition-speed) ease;
}

table th {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f3f5;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    form {
        grid-template-columns: 1fr;
    }
    
    form label, 
    form select, 
    form button {
        grid-column: span 1;
    }
}