/* ============================================
   Town Stats Card - Exact Match Styles
   ============================================ */

.town-stats-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.town-stats-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Header - Location Pin + Town Name */
.town-stats-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.town-stats-header .zmdi-pin {
    font-size: 18px;
    color: #5c5c5c;
}

.town-stats-header .town-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Body */
.town-stats-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Primary Stat - إجمالي الناخبين */
.primary-stat {
    text-align: center;
}

.primary-stat .primary-label {
    font-size: 18px;
    color: #888;
    margin-bottom: 4px;
}

.primary-stat .primary-value {
    font-size: 42px;
    font-weight: 300;
    color: #5ba5e6;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Badges Row - منتخبات & ديوك */
.badges-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: rtl;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.stat-badge i {
    font-size: 14px;
}

.badge-green {
    background-color: #e8f5e9;
    color: #43a047;
    border: 1px solid #c8e6c9;
}

.badge-blue {
    background-color: #e3f2fd;
    color: #1e88e5;
    border: 1px solid #bbdefb;
}

/* Icons Row - Ballot Boxes & Voting Centers */
.icons-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 8px 0;
    direction: rtl;
}

.icon-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.icon-stat i {
    font-size: 16px;
    color: #999;
}

/* Secondary Stat - متوسط الأصوات */
.secondary-stat {
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
    text-align: center;
}

.secondary-stat .secondary-label {
    font-size: 1.8rem;
    color: #888;
    margin-bottom: 4px;
}

.secondary-stat .secondary-value {
    font-size: 24px;
    font-weight: 500;
    /* color: #4caf50; */
}

/* ============================================
   RTL Support (Arabic)
   ============================================ */

[dir="rtl"] .town-stats-header,
.town-stats-header {
    flex-direction: row;
    justify-content: flex-end;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 576px) {
    .town-stats-card {
        padding: 16px;
    }
    
    .primary-stat .primary-value {
        font-size: 36px;
    }
    
    .badges-row {
        flex-wrap: wrap;
    }
    
    .icons-row {
        gap: 20px;
    }
}
