/* Reset and Base Styles */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    /* Deep dark slate background */
    color: #a3b2c1;
}

.card-container {
    padding: 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.card {
    background-color: #1e293b;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    color: #f2121a;
}

.status-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    color: #f2121a;
}

.disclosure {
    background-color: #0f172a;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Input Group Styles */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Spaces the icon from the text */
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
}

input[type="number"] {
    width: 100%;
    padding: 0.875rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: #f8fafc;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="number"]:focus {
    border-color: #6366f1;
    /* Indigo focus ring */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Button Styles */
.submit-button {
    background-color: #6366f1;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Spaces the icon from the text */
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.perfect {
    background-color: #07402d;
}

.unstable {
    background-color: #6f4704;
}

.broken {
    background-color: #891111;
}

.submit-button:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-success {
    background-color: #10b98182;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Emerald green */
}

/* Result Text */
#result {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    min-height: 1.2rem;
    /* Prevents layout shift when text appears */
}
