/* ===== GOVERNANCE PAGE STYLES ===== */

.governance-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Mayor Profile */
.mayor-profile {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.mayor-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.mayor-avatar-lg {
    width: 70px;
    height: 70px;
    background: var(--bg-item);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.mayor-details {
    flex: 1;
    z-index: 2;
}

.mayor-name {
    font-size: 18px;
    margin-bottom: 4px;
}

.mayor-title {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    background: var(--accent-gradient);
    border-radius: 10px;
    margin-bottom: 8px;
}

.term-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
}

.term-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.term-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.mayor-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 70px;
}

.mayor-stats .stat-box {
    text-align: right;
}

.mayor-stats .val {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.mayor-stats .lbl {
    font-size: 10px;
    color: var(--text-muted);
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.kpi-card {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kpi-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.kpi-val {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.kpi-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.kpi-trend {
    font-size: 10px;
    font-weight: 600;
}

.kpi-trend.up {
    color: var(--success);
}

.kpi-trend.down {
    color: var(--danger);
}

.kpi-trend.stable {
    color: var(--text-secondary);
}

/* Policy List */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.policy-card {
    padding: 15px;
    border-left: 4px solid transparent;
}

.policy-card.active {
    border-left-color: var(--success);
}

.policy-card.inactive {
    border-left-color: var(--text-muted);
    opacity: 0.7;
}

.policy-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-icon {
    font-size: 24px;
}

.policy-info {
    flex: 1;
}

.policy-name {
    font-size: 14px;
    margin-bottom: 4px;
}

.policy-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.toggle-switch {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    transition: var(--transition-fast);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch.active {
    background: var(--success);
}

.toggle-switch.active::after {
    transform: translateX(16px);
}

/* Election Banner */
.election-banner {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(86, 204, 242, 0.2) 0%, rgba(47, 128, 237, 0.2) 100%);
    border: 1px solid rgba(86, 204, 242, 0.3);
}

.election-info h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.election-info p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.vote-btn {
    padding: 8px 16px;
    background: white;
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}