/* app/assets/stylesheets/calculator.css */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* Basic Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
    /*background-image: url('https://placehold.co/1920x1080/E0E0E0/333333');*/
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main container */
main {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

h1 {
    color: #4a4a4a;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

h2 {
    color: #555;
    font-size: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 700;
    font-size: 1rem;
    color: #555;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="number"]:focus {
    border-color: #4a90e2;
    outline: none;
}

button[type="submit"] {
    background-color: #4a90e2;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
    background-color: #357bd8;
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Results section */
.results-display {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #ccc;
}

.result-item.total {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: none;
    padding-top: 0.5rem;
}

footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}
