
:root {
    --primary-color: #38A169;
    --secondary-color: #3182CE;
    --primary-light: #9AE6B4;
    --secondary-light: #90CDF4;
    --primary-dark: #276749;
    --secondary-dark: #2C5282;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.card {
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3);
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
}

.result-box {
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: var(--primary-dark);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.result-box.show {
    opacity: 1;
    transform: translateY(0);
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin: 2rem 0;
}

.calculator-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: auto;
    opacity: 0.1;
    z-index: -1;
}

.header-animation {
    animation: fadeInDown 1s ease-out;
}

.card-animation {
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.formula-box {
    background-color: #edf2f7;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.inter-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.inter-link:hover {
    color: var(--secondary-dark);
    border-bottom: 2px solid var(--secondary-color);
}

.calculator-section {
    position: relative;
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Radio button styling */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.radio-button {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-weight: normal;
    display: flex;
    align-items: center;
    height: 30px;
}

.radio-button input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: white;
    transition: all 0.2s ease;
}

.radio-button:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.radio-button input:checked ~ .checkmark {
    background-color: white;
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-button input:checked ~ .checkmark:after {
    display: block;
}

.radio-button .checkmark:after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Activity level styling */
.activity-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.activity-option {
    flex: 1;
    min-width: 200px;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.activity-option:hover {
    border-color: var(--primary-light);
    background-color: #f7fafc;
}

.activity-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(56, 161, 105, 0.05);
}

.activity-option h4 {
    margin-top: 0;
    color: var(--primary-dark);
    font-weight: 600;
}

.activity-option p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #718096;
}

/* Tooltip styling */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #2d3748;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
