/* ===================================
   VOTE SUMMARY WRAPPER - MINIMAL
   Complete styling for Today's and All-Time summaries
   =================================== */

.kff-vote-summary-wrapper {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===================================
   SUMMARY SECTIONS (Common Styles)
   =================================== */
.kff-vote-summary {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    /* Matching --vote-radius */
    padding: 20px;
    border: 1px solid #e5e7eb;
    /* Removed heavy shadow and gradient */
}

/* ===================================
   SUMMARY HEADER
   =================================== */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    /* --vote-text-dark */
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-date {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
}

.summary-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

/* ===================================
   TODAY'S SUMMARY SPECIFIC
   =================================== */
.today-summary {
    background: #ffffff;
    border-left: 1px solid #3b82f6;
border-right: 1px solid #3b82f6;
}

.today-summary .summary-title {
    color: #1e40af;
}

/* ===================================
   ALL-TIME SUMMARY SPECIFIC
   =================================== */
.alltime-summary {
    background: #ffffff;
    border-left: 1px solid #f59e0b;
border-right: 1px solid #f59e0b;
}

.alltime-summary .summary-title {
    color: #d97706;
}

/* ===================================
   SUMMARY STATS GRID
   =================================== */
.summary-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.summary-stat-card {
    background: white;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.summary-stat-card:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card-specific colors (Minimal text coloring) */
.total-votes-card .stat-value {
    color: #3b82f6;
}

.unique-voters-card .stat-value {
    color: #10b981;
}

/* --vote-success */
.avg-votes-card .stat-value {
    color: #f59e0b;
}

.alltime-votes-card .stat-value {
    color: #ef4444;
}

/* --vote-primary */
.alltime-users-card .stat-value {
    color: #8b5cf6;
}

.alltime-days-card .stat-value {
    color: #06b6d4;
}

/* ===================================
   BAJI BREAKDOWN
   =================================== */
.baji-breakdown {
    margin-top: 20px;
}

.breakdown-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.baji-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.baji-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.baji-number {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.baji-time {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
}

.baji-votes {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
}

/* Baji status colors */
.baji-card.active {
    background: #f0fdf4;
    border-color: #10b981;
}

.baji-card.active .baji-number {
    color: #15803d;
}

.baji-card.active .baji-votes {
    color: #15803d;
}

.baji-card.completed {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.baji-card.completed .baji-votes {
    color: #9ca3af;
}

.baji-card.upcoming {
    background: #fffbeb;
    border-color: #fcd34d;
}

.baji-card.upcoming .baji-votes {
    color: #d97706;
}

.baji-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #10b981;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* ===================================
   ALL-TIME INSIGHTS
   =================================== */
.alltime-insights {
    margin-top: 20px;
}

.insight-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.insight-card {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e5e7eb;
}

.insight-title {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

/* Popular Numbers */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 4px;
    border: 1px solid transparent;
}

.popular-item:hover {
    border-color: #e5e7eb;
}

.medal {
    font-size: 18px;
    line-height: 1;
}

.popular-item .number {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.popular-item .votes {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* Most Active Baji */
.active-baji-display {
    text-align: center;
    padding: 12px;
    background: #fffbeb;
    border-radius: 6px;
}

.active-baji-number {
    font-size: 24px;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 4px;
}

.active-baji-votes {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.active-baji-time {
    font-size: 12px;
    color: #6b7280;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .kff-vote-summary-wrapper {
        margin-top: 15px;
        gap: 15px;
    }

    .kff-vote-summary {
        padding: 15px;
    }

    .summary-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .baji-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .insight-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {

    /* Minimal adjustments for small mobile */
    .baji-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 24px;
    }
}