/* CSS Reset & Variables */
:root {
    --primary-color: #0e6caf; /* Wisdom Imbibe Blue */
    --primary-dark: #0b5993;
    --primary-light: #e0f2fe;
    --accent-color: #10b981; /* Success Green */
    --accent-dark: #059669;
    
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.site-header {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.site-logo {
    display: flex;
    justify-content: center;
}

.site-logo img {
    max-width: 300px;
    height: auto;
}

.main-navigation {
    background-color: #000000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.inside-navigation {
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.2s;
}

.main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        display: none;
    }
    .menu-toggle {
        display: block;
        width: 100%;
        background: none;
        border: none;
        color: white;
        padding: 15px;
        font-size: 16px;
        cursor: pointer;
    }
    .inside-navigation {
        flex-direction: column;
    }
}
.menu-toggle {
    display: none;
}

/* Main Content Layout */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.calculator-section {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Page Titles */
.header-titles {
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* Dashboard Card */
.dashboard-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background-color: #f1f5f9;
    padding: 8px;
    border-radius: 12px;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-speed);
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: rgba(14, 108, 175, 0.05);
}

.tab-button.active {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

/* Panel Design */
.team-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.team-panel h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

/* Inputs */
.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-row:last-child {
    margin-bottom: 0;
}

.input-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field.full-width {
    flex: none;
    width: 100%;
}

.input-field label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.input-field input[type="number"] {
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #fff;
    color: var(--text-main);
}

.input-field input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 108, 175, 0.1);
}

.input-field small {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

/* Buttons */
.calculate-btn {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(14, 108, 175, 0.2);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.calculate-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(14, 108, 175, 0.3);
}

.calculate-btn:active {
    transform: scale(0.98);
}

/* Results Area */
.result-area {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed #cbd5e1;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.hidden {
    display: none !important;
}

/* NRR Output Design */
.score-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(14, 108, 175, 0.2);
}

.score-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
}

#nrr-value {
    font-size: 42px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1;
}

/* Multi-Stat Output Design */
.stats-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.stats-grid.triples {
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 120px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px 15px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.stat-box h4 {
    font-size: 32px;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

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

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

/* SEO Content Section */
.seo-content {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.seo-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 26px;
    font-family: 'Outfit', sans-serif;
}

.seo-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
}

.seo-content p {
    margin-bottom: 15px;
    color: #334155;
    line-height: 1.7;
}

.seo-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.seo-content li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.7;
}

.formula-box {
    background-color: #f1f5f9;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 15px;
    color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background-color: #f1f5f9;
    color: var(--text-muted);
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
    font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .dashboard-card {
        padding: 20px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .tabs-container {
        padding: 4px;
    }
    
    .tab-button {
        padding: 10px 12px;
        font-size: 13px;
    }

    .page-title {
        font-size: 28px;
    }
    
    .stats-grid {
        flex-direction: column;
    }
    
    .stat-box {
        margin-bottom: 5px;
    }
}
