body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 40px;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

/* Navigation Styles */
.main-nav {
    margin: 20px 0 40px 0;
    border-bottom: 2px solid #e8f4fd;
    padding-bottom: 15px;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
    border-radius: 25px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-item a:hover {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.nav-item a:active {
    transform: translateY(0);
}

/* Active page styling */
.nav-item a.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
}

h2 {
    color: #34495e;
    margin-top: 30px;
}

h3 {
    color: #2980b9;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h4 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.15em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 15px;
    font-weight: 500;
    color: #2c3e50;
    display: block;
}

label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
    display: inline-block;
}

#tempname {
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
}

.temp-red {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.temp-orange {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.temp-yellow {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.temp-yellow-green {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.temp-green {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.mySlider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 20px 0;
    transition: background 0.3s;
}

.shortSlider {
    /* width: 80%; */
}

.mySlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mySlider::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.mySlider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#sliderValue {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.risk-select {
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 5px 20px;
    margin: 10px 0;
    background: rgba(52, 152, 219, 0.05);
}

.risk-select legend {
    color: #2980b9;
    font-weight: bold;
    padding: 0 10px;
    background: white;
    border-radius: 8px;
}

.risk-select .fieldset-option {
    display: block;
    margin: 12px 0;
    padding: 12px 30% 12px 1%;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
}

.risk-select .fieldset-option:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateX(5px);
}

.risk-select .fieldset-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.5);
    accent-color: #3498db;
}

.risk-select .fieldset-option input[type="radio"]:checked + span {
    color: #2980b9;
    font-weight: bold;
}

input[type="number"] {
    background: linear-gradient(45deg, #e3ecfa, #b3c6e7);
    color: #2c3e50;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    border: none;
    outline: none;
    width: 120px;
    transition: box-shadow 0.2s, background 0.2s;
}

input[type="number"]:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: linear-gradient(45deg, #b3c6e7, #e3ecfa);
}

.cost-display {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    display: inline-block;
}

.risk-savings {
    background: linear-gradient(45deg, #3ce74a, #30c02b);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(60, 231, 89, 0.3);
    display: inline-block;
}

.risk-cost, #temperature-risk-cost, #filterRiskCost {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    display: inline-block;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 40px 0;
    border: none;
}

#volumeUnit {
    display: inline-block;
    width: 50px;
    text-align: left;
}

.unit-display {
    display: inline-block;
    font-weight: bold;
    color: #2980b9;
}

#minimumRefresh, .volume-measurement {
    display: inline-block;
    font-weight: bold;
    color: #2980b9;
}

#risk-select #guh.fieldset-option {
    display: inline;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}