* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #dbeafe, #f8fafc);
    color: #1f2937;
}

.app-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 760px;
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

h1 {
    margin-top: 0;
    color: #1d4ed8;
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: 28px;
    color: #64748b;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

input:focus {
    outline: none;
    border-color: #2563eb;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

button.secondary {
    background: #64748b;
}

button.secondary:hover {
    background: #475569;
}

.result {
    margin-top: 28px;
    padding: 20px;
    border-radius: 12px;
    background: #eff6ff;
    border-left: 5px solid #2563eb;
}

.result h2 {
    margin-top: 0;
    color: #1d4ed8;
}

.hidden {
    display: none;
}

@media (max-width: 700px) {
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        padding: 24px;
    }
}