/* Custom Variables untuk Konsistensi Warna */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-color: #f0f2f5;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --border-color: #edf2f7;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    /* Efek Dot Pattern pada Background */
    background-image: radial-gradient(#667eea1a 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 90%;
}

h1 {
    text-align: center;
    font-weight: 600;
    font-size: 26px;
    margin-bottom: 30px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styling */
.form-group {
    margin-bottom: 25px;
}

label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #b2bec3;
    transition: color 0.3s ease;
}

input[type="number"] {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="number"]:focus {
    border-color: #667eea;
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Mengubah warna ikon saat input fokus */
input[type="number"]:focus + i {
    color: #667eea;
}

/* Button Styling */
button {
    width: 100%;
    padding: 15px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

button:active {
    transform: translateY(0);
}

/* Result Section */
.result {
    margin-top: 25px;
    padding: 20px;
    border-left: 5px solid #667eea;
    border-radius: 10px;
    display: none;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #4834d4;
}

.result p {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.total-highlight {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #667eea;
}

.total-highlight strong {
    font-size: 18px;
    color: var(--text-dark);
}