/* ===================================
   BMR CALCULATOR STYLES
   Professional Design with Animations
   =================================== */

/* Do NOT define :root variables here - use site's CSS variables from main.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bmr-calculator-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

/* ===================================
   HEADER
   =================================== */
.calculator-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.calculator-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.header-content {
    position: relative;
    z-index: 1;
}

.calculator-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.calculator-header .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===================================
   CALCULATOR CARD
   =================================== */

.calculator-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: -40px auto 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

/* ===================================
   TABS
   =================================== */

.calculator-tabs {
    display: flex;
    border-bottom: 2px solid var(--bg-secondary);
    background: var(--bg-secondary);
}

.tab-button {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.tab-button:hover {
    color: var(--brand-primary);
    background: rgba(255, 107, 53, 0.05);
}

.tab-button.active {
    color: var(--brand-primary);
    background: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
    animation: slideInFromLeft 0.3s ease-out;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* ===================================
   FORM ELEMENTS
   =================================== */

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.5rem;
    color: var(--brand-secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-base);
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group small {
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ===================================
   UNIT TOGGLE
   =================================== */

.unit-toggle {
    display: flex;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 5px;
    border-radius: 8px;
    width: fit-content;
}

.unit-btn {
    padding: 12px 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    color: #6c757d;
}

.unit-btn:hover {
    background: white;
}

.unit-btn.active {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ===================================
   FORMULA SELECTOR
   =================================== */

.formula-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.formula-option {
    cursor: pointer;
}

.formula-option input[type="radio"] {
    display: none;
}

.formula-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition-base);
    background: white;
}

.formula-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.formula-option input[type="radio"]:checked + .formula-card {
    border-color: var(--brand-primary);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.formula-card h4 {
    color: var(--brand-secondary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.formula-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--brand-secondary);
    border: 2px solid var(--brand-secondary);
}

.btn-secondary:hover {
    background: var(--brand-secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* ===================================
   RESULTS SECTION
   =================================== */

.results-section {
    margin-top: 40px;
    animation: fadeIn 0.6s ease-out;
}

.results-section h2 {
    font-size: 2rem;
    color: var(--brand-secondary);
    margin-bottom: 30px;
    text-align: center;
}

/* ===================================
   METRICS GRID
   =================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    animation: scaleIn 0.4s ease-out;
}

.metric-card:nth-child(1) {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #ff8c61 100%);
}

.metric-card:nth-child(2) {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #0077b6 100%);
}

.metric-card:nth-child(3) {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #2ec4b6 100%);
}

.metric-card:nth-child(4) {
    background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.metric-unit {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===================================
   RESULTS CARD
   =================================== */

.results-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.results-card h3 {
    font-size: 1.5rem;
    color: var(--brand-secondary);
    margin-bottom: 25px;
}

/* ===================================
   MACRO BREAKDOWN
   =================================== */

.macro-breakdown {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.macro-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
}

.macro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.macro-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.macro-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brand-primary);
}

.macro-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.macro-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease-out;
}

.protein-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.carbs-fill {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.fat-fill {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.macro-calories {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ===================================
   CHARTS
   =================================== */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.chart-container h3 {
    font-size: 1.3rem;
    color: var(--brand-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* ===================================
   ACTION BUTTONS
   =================================== */

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

/* ===================================
   COMPARISON SECTION
   =================================== */

.comparison-intro {
    text-align: center;
    margin-bottom: 30px;
}

.comparison-intro h2 {
    font-size: 2rem;
    color: var(--brand-secondary);
    margin-bottom: 15px;
}

.comparison-intro p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
}

.comparison-results {
    margin-top: 40px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.comparison-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--brand-primary);
    transition: var(--transition-base);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comparison-card h3 {
    color: var(--brand-secondary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.comparison-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.comparison-details p {
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.comparison-details strong {
    color: var(--text-primary);
}

.comparison-chart-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.comparison-chart-container h3 {
    text-align: center;
    color: var(--brand-secondary);
    margin-bottom: 20px;
}

.comparison-stats {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.comparison-stats h3 {
    color: var(--brand-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* ===================================
   PROFILES SECTION
   =================================== */

.profiles-header {
    text-align: center;
    margin-bottom: 30px;
}

.profiles-header h2 {
    font-size: 2rem;
    color: var(--brand-secondary);
    margin-bottom: 15px;
}

.profiles-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.profiles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state small {
    font-size: 0.9rem;
}

.profile-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-secondary);
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-secondary);
}

.profile-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.profile-detail {
    display: flex;
    flex-direction: column;
}

.profile-detail-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.profile-detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.profile-btn-load {
    background: var(--brand-primary);
    color: white;
}

.profile-btn-load:hover {
    background: var(--brand-secondary);
}

.profile-btn-delete {
    background: #e0e0e0;
    color: var(--text-primary);
}

.profile-btn-delete:hover {
    background: var(--danger);
    color: white;
}

/* ===================================
   FOOTER
   =================================== */

.calculator-footer {
    background: var(--brand-secondary);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.calculator-footer p {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .calculator-header .subtitle {
        font-size: 1rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .formula-selector {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .calculator-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .unit-toggle {
        width: 100%;
    }
    
    .unit-btn {
        flex: 1;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ============================================
   PROFESSIONAL DROPDOWN STYLING
   ============================================ */

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004e89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 45px 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

select:hover {
    border-color: #004e89;
    box-shadow: 0 4px 12px rgba(0, 78, 137, 0.1);
    transform: translateY(-1px);
}

select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

select option {
    padding: 12px;
    background-color: #ffffff;
    color: #2c3e50;
    font-weight: 500;
}

select option:hover {
    background-color: #f0f7ff;
}

/* Dark styling for option groups if needed */
select optgroup {
    font-weight: 700;
    color: #004e89;
    background-color: #f8f9fa;
}

/* Enhanced form group styling */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* Input fields matching dropdown style */
input[type="number"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input[type="number"]:hover {
    border-color: #004e89;
    box-shadow: 0 4px 12px rgba(0, 78, 137, 0.1);
    transform: translateY(-1px);
}

input[type="number"]:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}


/* ============================================
   PROFILE CARDS STYLING
   ============================================ */

.profiles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.profile-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
    transform: translateY(-3px);
}

.profile-card h3 {
    margin: 0 0 16px 0;
    color: #004e89;
    font-size: 20px;
    font-weight: 700;
}

.profile-details {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-details p {
    margin: 8px 0;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
}

.profile-details strong {
    color: #004e89;
    font-weight: 600;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-actions button {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger {
    background: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background: #c82333 !important;
    transform: scale(1.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.empty-state small {
    font-size: 14px;
    color: #6c757d;
}

/* ============================================
   COMPARISON SECTION STYLING
   ============================================ */

.comparison-intro {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.comparison-intro h2 {
    color: #004e89;
    margin-bottom: 12px;
}

.comparison-intro p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
}

.comparison-results {
    margin-top: 32px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.comparison-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
    transform: translateY(-3px);
}

.comparison-card h3 {
    color: #004e89;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.comparison-value {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 16px;
}

.comparison-details {
    text-align: left;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.comparison-details p {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #2c3e50;
}

.comparison-details strong {
    color: #004e89;
    font-weight: 600;
}

/* Statistics Section */
.comparison-stats {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
}

.comparison-stats h3 {
    text-align: center;
    color: #004e89;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

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

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b35;
}

.comparison-chart-container {
    margin-top: 32px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison-chart-container h3 {
    text-align: center;
    color: #004e89;
    margin-bottom: 20px;
}

/* ============================================
   ACTION BUTTONS ENHANCEMENT
   ============================================ */

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    width: 100%;
    display: block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
