/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ===== CALCULATOR TABS ===== */
.calculator-tab {
    background-color: #f3f4f6;
    color: #6b7280;
    transition: all 0.3s ease;
}

.calculator-tab:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.active-tab {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ===== CALCULATOR CONTENT VISIBILITY ===== */
.calculator-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.calculator-content.active {
    display: block;
}

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

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== BUTTONS ===== */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* ===== INPUT FIELDS ===== */
input[type="number"],
input[type="text"],
select {
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== RESULTS HIGHLIGHTING ===== */
.result-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .calculator-tab {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}
