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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Calculator Container */
.calculator-container {
    background-color: #1a1a1a;
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Inputs Section */
.inputs-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.input-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.input-group label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #333333;
}

.input-wrapper input[type="number"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    width: 100%;
}

.input-unit {
    color: #888888;
    font-size: 14px;
    font-weight: 500;
}

/* Slider */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider:hover {
    opacity: 0.9;
}

/* Outputs Section */
.outputs-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.output-card {
    background-color: #252525;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #333333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.output-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.output-card.highlight {
    background-color: #2a2a2a;
    border: 2px solid #444444;
}

.output-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.output-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.output-title {
    font-size: 11px;
    color: #888888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.output-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffd700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.output-card.highlight .output-value,
.highlight-value {
    font-size: 42px;
    color: #ffd700;
}

.output-status {
    font-size: 14px;
    color: #ffa500;
    font-weight: 500;
    margin-top: 8px;
}

.output-status.green {
    color: #4caf50;
}

.output-status.yellow {
    color: #ffa500;
}

.output-status.red {
    color: #f44336;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-button {
    background-color: #ffd700;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-arrow {
    font-size: 20px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    .calculator-container {
        padding: 24px;
        border-radius: 16px;
    }

    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }

    .output-value {
        font-size: 28px;
    }

    .output-card.highlight .output-value {
        font-size: 32px;
    }

    .cta-button {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 24px;
    }

    .input-wrapper {
        padding: 10px 12px;
    }

    .output-card {
        padding: 20px;
    }

    .output-value {
        font-size: 24px;
    }

    .output-card.highlight .output-value {
        font-size: 28px;
    }
}

/* Animation for value changes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.output-value.updated {
    animation: pulse 0.3s ease;
}
