@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Light mode colors */
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --secondary: #4cc9f0;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-color-hover: rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --box-shadow: 0 10px 30px var(--shadow-color);
    --transition: all 0.3s ease;
    --font-size-small: 0.8rem;
    --font-size-base: 1rem;
    --font-size-medium: 1.2rem;
    --font-size-large: 1.5rem;
    --error-color: #e74c3c;
    --tooltip-bg: rgba(0, 0, 0, 0.85);
}

.dark-mode {
    /* Dark mode colors */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --border-color: #2d3748;
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #6366f1;
    --secondary: #4cc9f0;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --light: #2d3748;
    --dark: #f8f9fa;
    --gray: #adb5bd;
    --gray-light: #2d3748;
    --gray-dark: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --shadow-color-hover: rgba(0, 0, 0, 0.35);
    --error-color: #ff6b6b;
    --tooltip-bg: rgba(15, 15, 15, 0.95);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(76, 201, 240, 0.03) 0%, transparent 20%);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

h1 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 2.2rem;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle-label {
    margin-right: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-light);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' stroke='%23f39c12' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' stroke='%233a0ca3' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

/* Unit toggle - less pronounced */
.unit-toggle {
    display: flex;
    border-radius: 20px;
    width: fit-content;
    gap: 5px;
}

.unit-btn {
    padding: 8px 14px;
    cursor: pointer;
    border: none;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: var(--transition);
    min-width: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.unit-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 5px rgba(67, 97, 238, 0.2);
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.form-section {
    flex: 1;
    min-width: 280px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: 0 8px 20px var(--shadow-color-hover);
    transform: translateY(-2px);
}

.form-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    transition: color 0.3s ease;
}

.form-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.form-group {
    margin-bottom: 15px;
    position: relative;
    margin-top: 0;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-top: 0;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

input, select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    background-color: var(--bg-secondary);
}

.radio-option input[type="radio"]:checked {
    border-color: var(--primary);
}

.radio-option input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
}

.radio-option label {
    margin-bottom: 0;
    cursor: pointer;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

button {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 25px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
}

button:hover {
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
}

button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

button:hover::after {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.results-container.show {
    opacity: 1;
    transform: translateY(0);
}

.result {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: none;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.result::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.result h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
    font-size: 1.4rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.result-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.result-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.bmi-category {
    margin: 15px 0;
    font-weight: 600;
    text-align: center;
    font-size: 1.3rem;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.underweight { 
    color: var(--info); 
    background-color: rgba(52, 152, 219, 0.1);
}

.normal { 
    color: var(--success); 
    background-color: rgba(46, 204, 113, 0.1);
}

.overweight { 
    color: var(--warning); 
    background-color: rgba(243, 156, 18, 0.1);
}

.obese { 
    color: var(--danger); 
    background-color: rgba(231, 76, 60, 0.1);
}

/* BMI Gauge Styles */
.bmi-gauge-container {
    margin: 25px auto;
    width: 100%;
    max-width: 500px;
}

.bmi-gauge {
    width: 100%;
    height: 50px;
    background: linear-gradient(to right, var(--info), var(--success), var(--warning), var(--danger));
    border-radius: 25px;
    position: relative;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.bmi-marker {
    width: 4px;
    height: 60px;
    background-color: var(--dark);
    position: absolute;
    top: -5px;
    transform: translateX(-50%);
    transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bmi-marker:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--dark);
}

.bmi-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* BMI Body Types */
.bmi-body-types {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    flex-wrap: wrap;
}

.body-type {
    text-align: center;
    width: 80px;
    opacity: 0.4;
    transition: all 0.5s ease;
    transform: scale(0.9);
    color: var(--text-secondary);
}

.body-type.active {
    opacity: 1;
    transform: scale(1.05);
    color: var(--text-primary);
}

.body-icon {
    width: 50px;
    height: 80px;
    margin: 0 auto 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.body-type.active .body-icon {
    transform: translateY(-5px);
}

.body-underweight {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40'%3E%3Cpath fill='%233498db' d='M12,5 a4,4 0 1,0 0,0.1 z M8,14 h8 l1,14 h-3 l-2,7 l-2,-7 h-3 z'/%3E%3C/svg%3E");
}

.body-normal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40'%3E%3Cpath fill='%232ecc71' d='M12,5 a4,4 0 1,0 0,0.1 z M7,14 h10 l1,14 h-3.5 l-2,7 l-2,-7 h-3.5 z'/%3E%3C/svg%3E");
}

.body-overweight {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40'%3E%3Cpath fill='%23f39c12' d='M12,5 a4,4 0 1,0 0,0.1 z M6,14 h12 l1,14 h-4 l-2,7 l-2,-7 h-4 z'/%3E%3C/svg%3E");
}

.body-obese {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40'%3E%3Cpath fill='%23e74c3c' d='M12,5 a4,4 0 1,0 0,0.1 z M5,14 h14 l1,14 h-5 l-2,7 l-2,-7 h-5 z'/%3E%3C/svg%3E");
}

/* BMR/TDEE Chart Styles */
.calorie-chart-container {
    margin: 25px auto;
    width: 100%;
    max-width: 500px;
}

.calorie-chart {
    width: 100%;
    height: 30px;
    background-color: var(--gray-light);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px var(--shadow-color);
}

.bmr-bar {
    height: 100%;
    background-color: var(--primary);
    float: left;
    transition: width 1s ease-out;
    width: 0;
}

.activity-bar {
    height: 100%;
    background-color: var(--secondary);
    float: left;
    transition: width 1s ease-out;
    width: 0;
}

.calorie-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 3px;
}

.bmr-color {
    background-color: var(--primary);
}

.activity-color {
    background-color: var(--secondary);
}

.calorie-goals {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    text-align: center;
    gap: 15px;
    flex-wrap: wrap;
}

.goal-item {
    flex: 1;
    min-width: 100px;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.goal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color-hover);
}

.goal-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.goal-value {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.center-text {
    text-align: center;
}

.big-value {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.text-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 8px;
    }
    
    .form-container {
        flex-direction: column;
    }
    
    .radio-group {
        flex-direction: row;
    }
    
    .form-row {
        flex-direction: row;
    }
    
    .calorie-goals {
        flex-direction: column;
    }
    
    .goal-item {
        width: 100%;
    }
    
    .bmi-body-types {
        flex-wrap: wrap;
    }
    
    .results-container {
        gap: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .big-value {
        font-size: 2rem;
    }
    
    .controls-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tooltip:hover:after {
        width: 200px;
        white-space: normal;
        text-align: center;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    input, select {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .export-options {
        flex-direction: column;
        align-items: center;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
    }
    
    .calculation-info {
        margin: 5px 0 20px;
        padding: 0 10px;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .bmi-labels span {
        font-size: 0.7rem;
    }
}

/* Unit toggle inside body measurements */
.units-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0;
}

/* Remove the previously added rule since it's not working */
#us-fields .form-group:first-child,
#metric-fields .form-group:first-child {
    margin-top: 0;
}

/* Add styles for the field containers */
#us-fields, #metric-fields {
    margin-top: 0;
    padding-top: 0;
}

/* Target the nested form-group structure in Height section */
#us-fields > .form-group:first-child,
#metric-fields > .form-group:first-child {
    margin-top: 0;
}

.unit-toggle {
    display: flex;
    border-radius: 20px;
    width: fit-content;
    gap: 5px;
}

.unit-btn {
    padding: 8px 14px;
    cursor: pointer;
    border: none;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: var(--transition);
    min-width: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.unit-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 5px rgba(67, 97, 238, 0.2);
}

/* Specific style for the measurement fields to fix spacing */
.measurement-fields {
    margin-top: 0;
    padding-top: 0;
}

.measurement-fields .form-group:first-child {
    margin-top: 0;
}

/* Special handling for the units form group to eliminate extra spacing */
.form-group-units {
    margin-bottom: 5px;
}

/* Accessibility helpers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Error message styles */
.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
}

.error-message.show {
    opacity: 1;
}

/* Input validation styles */
input.error, select.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 1px var(--error-color);
}

input.valid, select.valid {
    border-color: var(--success);
    box-shadow: 0 0 0 1px var(--success);
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
    color: var(--text-secondary);
}

.tooltip i {
    font-size: 14px;
}

.tooltip:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tooltip-bg);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip:hover:before {
    content: "";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border-width: 6px;
    border-style: solid;
    border-color: var(--tooltip-bg) transparent transparent transparent;
    z-index: 10;
    pointer-events: none;
}

/* Export options */
.export-options {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    gap: 15px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
}

.export-options.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.export-btn {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.export-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.export-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.export-btn i {
    font-size: 18px;
}

/* Calculation info */
.calculation-info {
    text-align: center;
    margin: 10px 0 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.auto-calc-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    transition: color 0.3s ease;
}

.auto-calc-message.success-message {
    color: var(--success);
    font-style: normal;
}

/* Secondary button style */
.secondary-button {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    width: auto;
    margin: 0;
    box-shadow: 0 2px 5px rgba(67, 97, 238, 0.1);
    transition: all 0.3s ease;
    min-width: 120px;
}

.secondary-button:hover {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
} 