/**
 * Widget Styles for Statistik Desa
 */

/* Widget Statistik Penduduk */
.statistik-penduduk-widget {
    padding: 15px 0;
}

.statistik-penduduk-widget .stat-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ccc;
    transition: all 0.3s ease;
}

.statistik-penduduk-widget .stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.statistik-penduduk-widget .stat-item:last-child {
    margin-bottom: 0;
}

.statistik-penduduk-widget .stat-male {
    border-left-color: #3498db;
}

.statistik-penduduk-widget .stat-female {
    border-left-color: #e74c3c;
}

.statistik-penduduk-widget .stat-total {
    border-left-color: #2ecc71;
}

.statistik-penduduk-widget .stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.statistik-penduduk-widget .male-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.statistik-penduduk-widget .female-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.statistik-penduduk-widget .total-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.statistik-penduduk-widget .stat-content {
    flex: 1;
}

.statistik-penduduk-widget .stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.statistik-penduduk-widget .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.statistik-penduduk-widget .no-data {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Widget Perkembangan Penduduk */
.perkembangan-penduduk-widget {
    padding: 15px 0;
}

.perkembangan-penduduk-widget .period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.perkembangan-penduduk-widget .period-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: #f5f5f5;
    color: #666;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.perkembangan-penduduk-widget .period-tab:hover {
    background: #e8e8e8;
    color: #333;
}

.perkembangan-penduduk-widget .period-tab.active {
    background: #3498db;
    color: #fff;
}

.perkembangan-penduduk-widget .period-content {
    display: none;
}

.perkembangan-penduduk-widget .period-content.active {
    display: block;
}

.perkembangan-penduduk-widget .period-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 6px;
    text-align: center;
}

.perkembangan-penduduk-widget .development-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.perkembangan-penduduk-widget .development-item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.perkembangan-penduduk-widget .development-item:last-child {
    margin-bottom: 0;
}

.perkembangan-penduduk-widget .development-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
}

.perkembangan-penduduk-widget .birth-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.perkembangan-penduduk-widget .death-icon {
    background: rgba(52, 73, 94, 0.1);
    color: #34495e;
}

.perkembangan-penduduk-widget .in-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.perkembangan-penduduk-widget .out-icon {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.perkembangan-penduduk-widget .development-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.perkembangan-penduduk-widget .development-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.perkembangan-penduduk-widget .development-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.perkembangan-penduduk-widget .no-data {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .statistik-penduduk-widget .stat-value {
        font-size: 20px;
    }

    .statistik-penduduk-widget .stat-icon {
        width: 40px;
        height: 40px;
    }

    .perkembangan-penduduk-widget .development-value {
        font-size: 18px;
    }

    .perkembangan-penduduk-widget .development-icon {
        width: 36px;
        height: 36px;
    }
}