/* Universal Cycling Calculator Styles */

.ucc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
}

.ucc-container * {
    box-sizing: border-box;
}

/* Header */
.ucc-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 16px;
    color: white;
}

.ucc-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.ucc-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Mode Selector */
.ucc-mode-selector {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.ucc-mode-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
}

.ucc-select,
.ucc-select-full {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.ucc-select:hover,
.ucc-select:focus,
.ucc-select-full:hover,
.ucc-select-full:focus {
    border-color: #11998e;
    outline: none;
}

/* Calculator Sections */
.ucc-calculator {
    display: none;
}

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

/* Cards */
.ucc-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
}

.ucc-card-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.ucc-card-desc {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

/* Form Elements */
.ucc-form-group {
    margin-bottom: 20px;
}

.ucc-form-group > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.ucc-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ucc-half {
    flex: 1;
    min-width: 200px;
}

.ucc-form-section {
    margin-bottom: 15px;
}

/* Input with Unit */
.ucc-input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ucc-input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 80px;
}

.ucc-input:focus {
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.15);
    outline: none;
}

.ucc-input-small {
    width: 70px;
    text-align: center;
}

.ucc-unit {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.ucc-unit-select {
    padding: 12px 10px;
    font-size: 14px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.ucc-unit-select:focus {
    border-color: #11998e;
    outline: none;
}

/* Time Inputs */
.ucc-time-inputs {
    display: flex;
    gap: 12px;
}

.ucc-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ucc-input-label {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Toggle */
.ucc-toggle {
    display: inline-flex;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 4px;
}

.ucc-toggle-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ucc-toggle-btn:hover {
    color: #333;
}

.ucc-toggle-btn.ucc-active {
    background: #11998e;
    color: white;
}

/* Calculate Button */
.ucc-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.ucc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

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

/* Results Section */
.ucc-results {
    animation: ucc-fadeIn 0.4s ease;
}

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

.ucc-results-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ucc-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.ucc-result-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ucc-result-large {
    padding: 25px;
}

.ucc-result-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ucc-result-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #11998e;
}

.ucc-note {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    .ucc-container {
        padding: 15px;
    }
    
    .ucc-header {
        padding: 20px 15px;
    }
    
    .ucc-title {
        font-size: 22px;
    }
    
    .ucc-card {
        padding: 20px;
    }
    
    .ucc-form-row {
        flex-direction: column;
    }
    
    .ucc-half {
        min-width: 100%;
    }
    
    .ucc-input-with-unit {
        flex-wrap: wrap;
    }
    
    .ucc-input {
        min-width: 100px;
    }
    
    .ucc-toggle {
        flex-direction: column;
        width: 100%;
    }
    
    .ucc-toggle-btn {
        padding: 12px 16px;
    }
    
    .ucc-button {
        width: 100%;
        padding: 14px 20px;
    }
    
    .ucc-result-value {
        font-size: 20px;
    }
    
    .ucc-result-grid {
        grid-template-columns: 1fr;
    }
}

/* Number Input Spinner Styling */
.ucc-input::-webkit-outer-spin-button,
.ucc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ucc-input[type=number] {
    -moz-appearance: textfield;
}
