/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Calculator container */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form styles */
.calculator-form {
    margin-bottom: 30px;
}

.component-selection {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.component-group {
    width: 48%;
    margin-bottom: 15px;
}

.component-group h2 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.component-dropdown, .option-dropdown {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s;
}

.component-dropdown:focus, .option-dropdown:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.component-dropdown.error, .option-dropdown.error {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

.additional-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.option-group {
    width: 48%;
    margin-bottom: 15px;
}

.option-group.full-width {
    width: 100%;
}

.option-group h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.button-group {
    display: flex;
    gap: 15px;
}

.calculate-button, .reset-button {
    padding: 15px;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.calculate-button {
    background-color: #3498db;
}

.calculate-button:hover {
    background-color: #2980b9;
}

.reset-button {
    background-color: #95a5a6;
}

.reset-button:hover {
    background-color: #7f8c8d;
}

.calculate-button:active, .reset-button:active {
    transform: scale(0.98);
}

/* Results styles */
.results-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border-left: 5px solid #3498db;
}

.results-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.bottleneck-meter {
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.bottleneck-indicator {
    height: 100%;
    background: linear-gradient(to right, #2ecc71, #f1c40f, #e74c3c);
    border-radius: 10px;
    width: 0;
    transition: width 0.8s ease-in-out;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.bottleneck-percentage {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: #2c3e50;
}

.bottleneck-description {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
    border-left: 3px solid #3498db;
}

.recommendations {
    padding: 15px;
    background-color: #e8f4fc;
    border-radius: 5px;
    margin-top: 15px;
}

.recommendations h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.recommendations ul {
    padding-left: 20px;
}

.recommendations li {
    margin-bottom: 5px;
}

.hidden {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .component-group, .option-group {
        width: 100%;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}