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

/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container Card */
.container {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 15px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

/* Title */
.container h1 {
    margin-bottom: 10px;
    color: #333;
}

/* Description */
.container p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* Labels */
label {
    display: block;
    text-align: left;
    margin-top: 10px;
    font-weight: 600;
    color: #444;
}

/* Inputs */
input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 5px rgba(79,172,254,0.5);
}

/* Button */
button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Total Output */
#total {
    display: inline-block;
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }

    h1 {
        font-size: 24px;
    }
}
