.calculator-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    color: #2980b9;
    margin: 20px 0 10px;
}

.currency-select {
    margin-bottom: 20px;
    text-align: center;
}

.currency-select select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.expense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #34495e;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #3498db;
    outline: none;
}

.button-group {
    margin-top: 20px;
    text-align: center;
}

button {
    padding: 12px 25px;
    margin: 0 10px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

#calculateBtn {
    background: #2ecc71;
    color: white;
}

#resetBtn {
    background: #e74c3c;
    color: white;
}

button:hover {
    transform: scale(1.05);
}

#result {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: opacity 0.5s;
}

.result-hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

#totalAmount {
    font-size: 24px;
    color: #27ae60;
    text-align: center;
}

#explanation {
    margin-top: 20px;
    color: #7f8c8d;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .expense-grid {
        grid-template-columns: 1fr;
    }
    
    button {
        width: 100%;
        margin: 10px 0;
    }
}