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

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
}

.arabic {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
}

/* ============================================
   HEADER
   ============================================ */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(90deg, #004217 0%, #1B8A42 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-left, .logo-right {
    display: flex;
    align-items: center;
}

.elo_logo {
    height: 50px;
    width: auto;
}

.kifah_logo {
    height: 60px;
    width: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.bottom {
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(90deg, #004217 0%, #1B8A42 100%);
    text-align: center;
    margin-top: auto;
}

.bottom p {
    color: white;
    margin: 5px 0;
    font-size: 14px;
}

/* ============================================
   CODE ENTRY PAGE
   ============================================ */
.code-entry-container {
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.code-entry-box {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 500px;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.code-icon {
    font-size: 60px;
    color: #d5b86d;
    margin-bottom: 20px;
}

.code-entry-box h1 {
    color: #282b3a;
    font-size: 28px;
    margin-bottom: 5px;
}

.code-entry-box h2 {
    color: #004217;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 500;
}

.instruction {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.code-form {
    margin-bottom: 20px;
}

.code-input-wrapper {
    margin-bottom: 20px;
}

.code-input-wrapper input {
    width: 100%;
    padding: 20px;
    font-size: 32px;
    text-align: center;
    letter-spacing: 15px;
    text-transform: uppercase;
    border: 3px solid #ddd;
    border-radius: 15px;
    background: #f9f9f9;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
}

.code-input-wrapper input:focus {
    outline: none;
    border-color: #d5b86d;
    background: white;
    box-shadow: 0 0 20px rgba(213, 184, 109, 0.3);
}

.code-hint {
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

.code-hint i {
    margin-right: 5px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #282b3a 0%, #3d4156 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d5b86d 0%, #c4a85d 100%);
    color: #282b3a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(213, 184, 109, 0.4);
}

.btn-primary i {
    margin-right: 10px;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    background: transparent;
    color: #d5b86d;
    border: 2px solid #d5b86d;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #d5b86d;
    color: #282b3a;
}

.btn-large {
    padding: 20px 40px;
    font-size: 20px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ============================================
   SURVEY PAGE
   ============================================ */
.survey-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.survey-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.survey-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.survey-header h2 {
    font-size: 28px;
    color: #d5b86d;
    margin-bottom: 20px;
}

.survey-intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border-left: 5px solid #ddd;
}

.question-card.answered {
    border-left-color: #22c55e;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.question-number {
    background: #282b3a;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

.question-category {
    color: #666;
    font-size: 14px;
}

.question-text {
    margin-bottom: 20px;
}

.question-en {
    color: #282b3a;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.question-ar {
    color: #004217;
    font-size: 16px;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.option-label {
    cursor: pointer;
}

.option-label input {
    display: none;
}

.option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.option-label input:checked + .option-box {
    background: #d5b86d;
    border-color: #c4a85d;
    color: #282b3a;
}

.option-en {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.option-ar {
    font-size: 11px;
    color: #666;
}

.option-label input:checked + .option-box .option-ar {
    color: #282b3a;
}

.option-box:hover {
    border-color: #d5b86d;
    transform: translateY(-2px);
}

.survey-submit {
    text-align: center;
    margin-top: 20px;
}

.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #282b3a;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
}

.progress-fill {
    height: 8px;
    background: linear-gradient(90deg, #d5b86d, #22c55e);
    border-radius: 4px;
    transition: width 0.3s ease;
    flex: 1;
    margin-right: 15px;
}

.progress-text {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* ============================================
   ROULETTE PAGE
   ============================================ */
.roulette-container {
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.roulette-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.roulette-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.roulette-header h2 {
    font-size: 28px;
    color: #d5b86d;
    margin-bottom: 15px;
}

.roulette-header p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.wheel-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #d5b86d;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.wheel-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#wheelCanvas {
    display: block;
}

.btn-spin {
    padding: 20px 60px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #d5b86d 0%, #c4a85d 100%);
    color: #282b3a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(213, 184, 109, 0.4);
}

.btn-spin:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(213, 184, 109, 0.5);
}

.btn-spin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spin i {
    margin-right: 10px;
}

/* Result Modal */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

.result-modal.hidden {
    display: none;
}

.result-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: scaleIn 0.5s ease;
}

.result-icon {
    font-size: 80px;
    color: #d5b86d;
    margin-bottom: 20px;
}

.result-content h2 {
    font-size: 32px;
    color: #282b3a;
    margin-bottom: 20px;
}

.result-prize {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-prize-ar {
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
    direction: rtl;
}

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

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

/* ============================================
   THANK YOU PAGE
   ============================================ */
.thankyou-container {
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.thankyou-box {
    background: rgba(255, 255, 255, 0.95);
    max-width: 550px;
    width: 100%;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.thankyou-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.thankyou-box h1 {
    font-size: 36px;
    color: #282b3a;
    margin-bottom: 10px;
}

.thankyou-box h2 {
    font-size: 28px;
    color: #004217;
    margin-bottom: 30px;
}

.prize-announcement {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.prize-label {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.prize-name {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.prize-name-ar {
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
    direction: rtl;
}

.prize-instruction {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}

.thankyou-message {
    margin-bottom: 30px;
    line-height: 1.8;
}

.thankyou-message p {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.social-share {
    margin-bottom: 30px;
}

.social-share p {
    color: #888;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: scale(1.1);
}

.return-link {
    margin-top: 20px;
}

/* ============================================
   RESULTS DASHBOARD
   ============================================ */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-login-box {
    background: rgba(255, 255, 255, 0.95);
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-login-box h1 {
    color: #282b3a;
    margin-bottom: 30px;
}

.admin-login-box h1 i {
    margin-right: 10px;
    color: #d5b86d;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #282b3a;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #d5b86d;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: white;
}

.dashboard-header h1 {
    font-size: 28px;
}

.dashboard-header h1 i {
    margin-right: 10px;
    color: #d5b86d;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 40px;
    color: #d5b86d;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #282b3a;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.section-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-card h2 {
    color: #282b3a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-card h2 i {
    margin-right: 10px;
    color: #d5b86d;
}

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

.prize-stat-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.prize-name {
    font-weight: 600;
    color: #282b3a;
    margin-bottom: 10px;
}

.prize-count {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.prize-bar {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.prize-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question-result {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.question-result:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.question-result h3 {
    color: #282b3a;
    font-size: 16px;
    margin-bottom: 15px;
}

.result-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 60px 50px;
    align-items: center;
    gap: 15px;
}

.result-label {
    font-size: 13px;
    color: #666;
}

.result-bar-container {
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d5b86d, #c4a85d);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.result-percent {
    font-weight: 600;
    color: #282b3a;
    text-align: right;
}

.result-count {
    font-size: 12px;
    color: #888;
}

.table-responsive {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table th,
.results-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #282b3a;
}

.results-table code {
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.answer-cell {
    font-weight: 600;
}

.answer-1 { color: #dc2626; }
.answer-2 { color: #f97316; }
.answer-3 { color: #6b7280; }
.answer-4 { color: #22c55e; }
.answer-5 { color: #16a34a; }

.export-section {
    text-align: center;
    margin-top: 30px;
}

.export-section .btn-primary {
    width: auto;
    display: inline-block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .top {
        padding: 10px 15px;
    }
    
    .elo_logo {
        height: 40px;
    }
    
    .kifah_logo {
        height: 50px;
    }
    
    .code-entry-box,
    .thankyou-box,
    .admin-login-box {
        padding: 30px 20px;
    }
    
    .code-input-wrapper input {
        font-size: 24px;
        letter-spacing: 10px;
        padding: 15px;
    }
    
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .option-box {
        padding: 12px 8px;
    }
    
    .option-en {
        font-size: 10px;
    }
    
    .option-ar {
        font-size: 9px;
    }
    
    .survey-header h1 {
        font-size: 28px;
    }
    
    .survey-header h2 {
        font-size: 22px;
    }
    
    .roulette-header h1 {
        font-size: 28px;
    }
    
    .roulette-header h2 {
        font-size: 22px;
    }
    
    #wheelCanvas {
        width: 300px;
        height: 300px;
    }
    
    .btn-spin {
        padding: 15px 40px;
        font-size: 18px;
    }
    
    .result-bar-row {
        grid-template-columns: 100px 1fr 50px 40px;
        gap: 10px;
    }
    
    .result-label {
        font-size: 11px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .question-en {
        font-size: 15px;
    }
    
    .question-ar {
        font-size: 14px;
    }
    
    .result-bar-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .result-bar-container {
        order: 2;
    }
    
    .result-percent,
    .result-count {
        display: inline;
    }
}


/* ============================================
   DEMOGRAPHICS SECTION
   ============================================ */
.demographics-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,245,245,0.95));
    border-left: 5px solid #1B8A42;
}

.demographics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .demographics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-label {
    font-size: 16px;
    font-weight: 600;
    color: #282b3a;
}

.demo-label .arabic {
    font-weight: 500;
    color: #555;
}

/* Gender Options */
.gender-options {
    display: flex;
    gap: 15px;
}

.gender-option {
    flex: 1;
    cursor: pointer;
}

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

.gender-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.gender-box i {
    font-size: 28px;
    margin-bottom: 8px;
    color: #666;
    transition: all 0.3s ease;
}

.gender-box span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.gender-option input[type="radio"]:checked + .gender-box {
    background: linear-gradient(135deg, #1B8A42, #004217);
    border-color: #1B8A42;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(27, 138, 66, 0.3);
}

.gender-option input[type="radio"]:checked + .gender-box i,
.gender-option input[type="radio"]:checked + .gender-box span {
    color: white;
}

.gender-option:hover .gender-box {
    border-color: #1B8A42;
    background: #f0f9f4;
}

/* Age Input */
.age-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #282b3a;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.age-input::placeholder {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

.age-input:focus {
    outline: none;
    border-color: #1B8A42;
    background: white;
    box-shadow: 0 0 0 4px rgba(27, 138, 66, 0.1);
}

.age-input::-webkit-outer-spin-button,
.age-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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


/* ============================================
   DEMOGRAPHICS STATS IN RESULTS
   ============================================ */
.demographics-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .demographics-stats-grid {
        grid-template-columns: 1fr;
    }
}

.demo-stat-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.demo-stat-box h3 {
    font-size: 16px;
    color: #282b3a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-stat-box h3 i {
    color: #1B8A42;
}

.gender-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gender-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.gender-stat i {
    font-size: 20px;
}

.gender-label {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.gender-value {
    font-size: 18px;
    font-weight: 700;
    color: #1B8A42;
}

.gender-percent {
    color: #666;
    font-size: 14px;
}

.age-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.age-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.age-stat-row span {
    color: #666;
}

.age-stat-row strong {
    color: #1B8A42;
    font-size: 16px;
}

.age-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.age-group-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.age-group-label {
    width: 80px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.age-group-fill {
    height: 20px;
    background: linear-gradient(90deg, #1B8A42, #4CAF50);
    border-radius: 4px;
    min-width: 5px;
    transition: width 0.3s ease;
}

.age-group-count {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    min-width: 30px;
}
