/* styles.css */
/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: #f0f2f5;
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

/* Input group styling */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
}

input[type="number"], input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="number"]:focus, input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
}

.range-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

input[type="range"] {
    flex: 1;
    height: 5px;
    background: #bdc3c7;
    border-radius: 5px;
    outline: none;
}

/* Results section */
.results {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 1.1em;
}

.highlight {
    color: #27ae60;
    font-weight: bold;
}

/* Tooltip styling */
.tooltip {
    font-size: 0.8em;
    color: #7f8c8d;
    display: block;
    margin-top: 5px;
}

/* Animation for results */
.animate {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .calculator-container {
        padding: 20px;
    }
    
    .range-container {
        flex-direction: column;
    }
}