/* Import font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

/* Reset dasar & variabel warna */
:root {
    --bg-color: #1a1a2e;
    --container-bg: #16213e;
    --primary-color: #0f3460;
    --secondary-color: #e94560;
    --font-color: #e0e0e0;
    --border-color: #e94560;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-color);
    color: var(--font-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

header h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

header p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

#gradeForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#gradeForm label {
    font-size: 1rem;
    text-align: left;
    font-weight: bold;
}

#gradeForm input {
    padding: 0.8rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--font-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
}

#gradeForm input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

#gradeForm button {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#gradeForm button:hover {
    background-color: #c43a51;
    transform: translateY(-2px);
}

.result-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#result {
    font-size: 1rem;
    font-weight: bold;
    word-wrap: break-word;
}
