/* Light Theme Results Page Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    color: #4285f4 !important;
}

/* Dashboard Container */
.dashboard-container {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
    width: 100%;
}

/* Header Section */
.dashboard-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.name-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1976d2;
    margin: 0;
    word-break: break-word;
}

.name-badges {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.name-badges .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.badge-gender {
    background-color: #4285f4 !important;
    color: white;
}

.badge-rarity {
    background-color: #ff6b6b !important;
    color: white;
}

.badge-year {
    background-color: #51cf66 !important;
    color: white;
}

.lucky-number-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #1976d2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    margin: 1rem auto;
    position: relative;
    z-index: 1;
}

.lucky-number {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
}

.lucky-label {
    font-size: 0.7rem;
    opacity: 0.9;
    text-align: center;
    line-height: 1;
}

/* Stats Grid */
.stats-grid {
    padding: 1.5rem 1rem;
    background: white;
}

.stats-row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.stat-card-wrapper {
    position: relative;
    height: 100%;
    padding-top: 25px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #e9ecef;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    background-clip: padding-box;
    border: 2px solid white;
}

.bg-light-green {
    background-color: #e6f7ed;
}

.bg-light-blue {
    background-color: #e3f2fd;
}

.bg-light-purple {
    background-color: #f3e5f5;
}

.bg-light-orange {
    background-color: #fff3e0;
}

.text-success {
    color: #28a745 !important;
}

.text-primary {
    color: #4285f4 !important;
}

.text-purple {
    color: #9c27b0 !important;
}

.text-orange {
    color: #ff9800 !important;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-context {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 400;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Chart Cards */
.chart-section {
    padding: 0 1rem 1.5rem 1rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    margin-bottom: 1.5rem;
}

.chart-title {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.chart-title i {
    color: #4285f4;
    margin-right: 0.5rem;
}

/* Rarity Analysis Card - New Style */
.rarity-analysis-card {
    background: linear-gradient(90deg, #4285f4, #6f42c1);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.rarity-analysis-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.rarity-analysis-text {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* Original Rarity Analysis Styles - Keep for compatibility */
.rarity-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
    margin-bottom: 1rem;
}

.rarity-visual {
    margin-top: 1rem;
}

.rarity-score {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rarity-percentage {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4285f4;
    margin-right: 0.5rem;
}

.rarity-percentage-label {
    color: #6c757d;
    font-size: 1rem;
}

.popularity-score-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Characteristics Grid */
.characteristics-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.char-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.char-label {
    min-width: 100px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.char-bar {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    min-width: 100px;
}

.char-fill {
    height: 100%;
    background: linear-gradient(90deg, #4285f4, #1976d2);
    transition: width 0.8s ease;
    border-radius: 6px;
}

.char-value {
    min-width: 50px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
    text-align: right;
}

/* Charts */
canvas {
    max-height: 300px !important;
    border-radius: 8px;
    width: 100% !important;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.table {
    margin-bottom: 0;
    color: #495057;
}

.table thead th {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    border-color: #e9ecef;
    padding: 1rem 0.75rem;
}

/* Progress Bars */
.progress {
    background-color: #e9ecef;
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    background: linear-gradient(90deg, #4285f4, #1976d2);
    border-radius: 4px;
}

/* Age Distribution Insights */
.age-insights {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.insight-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.insight-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.insight-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4285f4;
}

.insight-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Age Distribution Analysis Styles */
.age-distribution-analysis {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.age-category-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.age-category-card:hover {
    transform: translateY(-5px);
}

.age-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.age-category-years {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.age-category-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.age-category-count {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.age-category-percentage {
    font-size: 14px;
    color: #6c757d;
}

.age-category-indicator {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Mobile responsive styles for age category cards */
@media (max-width: 768px) {
    .age-category-cards-container .col-md-4.col-lg-2 {
        width: 50%; /* Display 2 cards per row on mobile */
    }
    
    .age-category-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .age-category-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 8px;
    }
    
    .age-category-count {
        font-size: 20px;
    }
    
    .age-category-years {
        font-size: 11px;
    }
    
    .age-category-label {
        font-size: 11px;
    }
    
    .age-category-percentage {
        font-size: 12px;
    }
}

/* Icon background colors */
.bg-kids {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

.bg-young-adults {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.bg-adults {
    background-color: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.bg-middle-aged {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.bg-seniors {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.bg-elderly {
    background-color: rgba(97, 97, 97, 0.1);
    color: #616161;
}

/* Indicator colors */
.indicator-kids {
    background-color: #00c853;
}

.indicator-young-adults {
    background-color: #2196f3;
}

.indicator-adults {
    background-color: #9c27b0;
}

.indicator-middle-aged {
    background-color: #ff9800;
}

.indicator-seniors {
    background-color: #f44336;
}

.indicator-elderly {
    background-color: #616161;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.25rem;
        text-align: center;
    }
    
    .name-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .name-badges {
        justify-content: center;
    }
    
    .lucky-number-circle {
        width: 70px;
        height: 70px;
        margin: 1.5rem auto 0.5rem;
        position: relative;
        transform: translateY(0);
    }
    
    .lucky-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .lucky-label {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .stats-grid {
        padding: 1.25rem 0.75rem;
    }
    
    .stats-row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .stat-card-wrapper {
        padding-top: 20px;
        margin-bottom: 0.5rem;
    }
    
    .stat-card {
        padding: 1rem 0.75rem;
        height: 100%;
        overflow: hidden;
    }
    
    .stat-icon {
        top: 0;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        z-index: 2;
    }
    
    .stat-value {
        font-size: 1.35rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-context {
        font-size: 0.65rem;
        line-height: 1.2;
        max-height: 2.4em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .chart-section {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
    
    .char-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .char-label {
        min-width: 100%;
    }
    
    .char-bar {
        width: 100%;
    }
    
    .char-value {
        min-width: auto;
        margin-left: auto;
    }
    
    .insight-grid {
        grid-template-columns: 1fr;
    }
    
    canvas {
        max-height: 250px !important;
    }
    
    .rarity-percentage {
        font-size: 2rem;
    }
    
    /* Fix for the header layout on mobile */
    .dashboard-header .row {
        flex-direction: column;
    }
    
    .dashboard-header .col-md-4 {
        margin-top: 0.5rem;
    }
    
    .dashboard-header .text-end {
        text-align: center !important;
    }

    /* Responsive styles for rarity analysis card */
    .rarity-analysis-card {
        padding: 1.5rem;
    }
    
    .rarity-analysis-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .rarity-analysis-text {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .dashboard-header {
        padding: 1.5rem;
    }
    
    .name-title {
        font-size: 2.25rem;
    }
    
    .insight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lucky-number-circle {
        width: 85px;
        height: 85px;
        margin: 1rem 0 1rem auto;
    }
    
    .stat-card {
        padding-top: 2.75rem;
    }
}

@media (min-width: 993px) {
    .dashboard-header {
        padding: 2rem;
    }
    
    .name-title {
        font-size: 2.5rem;
    }
    
    .lucky-number-circle {
        width: 100px;
        height: 100px;
        margin: 1rem 0 1rem auto;
    }
    
    .lucky-number {
        font-size: 2rem;
    }
}

/* Animation */
.dashboard-container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading States */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

/* Percentile Gauge Chart Styles */
.percentile-gauge-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.percentile-value {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    bottom: 40px;
}

.percentile-label {
    position: absolute;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    bottom: 20px;
}

.rarity-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .percentile-gauge-container {
        height: 160px;
    }
    
    .percentile-value {
        font-size: 2rem;
        bottom: 30px;
    }
    
    .percentile-label {
        font-size: 0.8rem;
        bottom: 15px;
    }
}

/* Top States by Popularity */
.top-states-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    margin-bottom: 1.5rem;
}

.top-states-card .chart-title {
    display: flex;
    align-items: center;
    color: #212529;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.top-states-card .chart-title i {
    color: #4285f4;
    margin-right: 0.5rem;
}

.top-states-card h6 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.top-states-card .fa-book {
    font-size: 1.25rem;
    color: #4285f4;
}

.state-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0;
}

.state-rank {
    width: 36px;
    height: 36px;
    background-color: #4285f4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.state-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    margin-right: 1rem;
    min-width: 120px;
}

.state-bar-container {
    width: 8rem; /* 128px */
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 1rem;
    flex-grow: 0;
    flex-shrink: 0;
}

.state-bar {
    height: 100%;
    background-color: #4285f4;
    border-radius: 5px;
}

.state-count {
    font-weight: 600;
    color: #666;
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.load-more-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.load-more-btn:hover {
    background-color: #1976d2;
}

@media (max-width: 1200px) {
    .state-bar-container {
        width: 18rem;
    }
}

@media (max-width: 992px) {
    .state-bar-container {
        width: 12rem;
    }
}

@media (max-width: 768px) {
    .state-item {
        padding: 0.25rem 0;
    }
    
    .state-rank {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 0.75rem;
    }
    
    .state-name {
        font-size: 0.9rem;
        margin-right: 0.75rem;
        min-width: 80px;
    }
    
    .state-bar-container {
        height: 8px;
        margin-right: 0.75rem;
        width: 8rem;
    }
    
    .state-count {
        font-size: 0.9rem;
        min-width: 60px;
    }
}

/* Name Summary Card Styles */
.name-summary-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.name-summary-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
    position: relative;
}

.name-summary-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.name-summary-header h3 i {
    color: #4285f4;
    margin-right: 0.75rem;
    font-size: 1.75rem;
}

.name-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a73e8;
    margin-top: 0.5rem;
    letter-spacing: -0.5px;
}

/* Key Metrics Row */
.summary-metrics-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
    justify-content: space-between;
}

.summary-metric-item {
    flex: 1;
    min-width: 120px;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-metric-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.metric-icon {
    background: linear-gradient(135deg, #4285f4, #34a853);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: white;
    font-size: 1.25rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detailed Info Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-grid-section {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 0.5rem;
    color: #4285f4;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e9ecef;
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.info-value.highlight {
    color: #4285f4;
}

.info-detail {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Visual Summary Bar */
.visual-summary {
    margin-bottom: 2rem;
}

.summary-progress-container {
    margin-top: 1rem;
}

.summary-label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-progress {
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.summary-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff5252, #ffb74d, #4caf50);
    border-radius: 6px;
}

.summary-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

/* Name Meaning Section */
.name-meaning-section {
    background: linear-gradient(to right, #f8f9fa, white);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #4285f4;
}

.name-meaning-section h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.name-meaning-section h4 i {
    color: #4285f4;
    margin-right: 0.5rem;
}

.name-meaning-section p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Gender Distribution */
.gender-distribution {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.gender-bar {
    height: 100%;
}

.gender-bar:first-child {
    background-color: #4285f4;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.gender-bar:last-child {
    background-color: #ff6b6b;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.gender-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .name-summary-card {
        padding: 1.5rem;
    }
    
    .name-highlight {
        font-size: 2rem;
    }
    
    .summary-metrics-row {
        flex-wrap: wrap;
    }
    
    .summary-metric-item {
        flex-basis: calc(50% - 0.5rem);
        margin-bottom: 1rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}