/* ==========================================================================
   Faktograf Stylesheet - Slovak Patriotic Theme (Dark Čičmany Redesign)
   ========================================================================== */

:root {
    /* Color Palette - Slovak Flag Colors (Royal Blue, Slovak Red, Crisp White) */
    --color-bg: #040814;              /* Very deep navy blue */
    --color-card-bg: rgba(10, 20, 45, 0.65); /* Rich navy glass card background */
    --color-border: rgba(255, 255, 255, 0.12); /* Crisp white glass borders */
    --color-text-primary: #ffffff;    /* Pure white primary text */
    --color-text-secondary: #92a8d3;  /* Soft light blue-silver secondary text */
    
    /* Slovak Flag Accents */
    --color-slovak-blue: #0033a0;     /* Official Slovak Flag Blue */
    --color-slovak-blue-glow: rgba(0, 51, 160, 0.35);
    --color-slovak-red: #ee1c25;      /* Official Slovak Flag Red */
    --color-slovak-red-glow: rgba(238, 28, 37, 0.35);
    
    /* Year Accents - Year A (White/Silver) and Year B (Optimized Sand-Beige/Gold replacing hard-to-read red text) */
    --color-silver: #ffffff;          
    --color-silver-glow: rgba(255, 255, 255, 0.25);
    --color-beige: #e5d3b3;           /* Highly readable warm sand-beige */
    --color-beige-glow: rgba(229, 211, 179, 0.3);
    --color-beige-dark: #bba480;
    
    /* Indicator directions */
    --color-green: #2ecc71;           /* Emerald for economic improvement */
    --color-red: #ff4d4d;             /* Coral red for decline */
    --color-neutral: #94a3b8;         /* Slate gray for neutral stats */
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Authentic Čičmany Geometric Patterns (SVG Data URIs for Dark Theme) */
    /* 1. Body Watermark (Repeating diamond, crosses, dots - extremely low white opacity) */
    --cicmany-pattern-body: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M0,20 L20,0 L40,20 L60,0 L80,20 L60,40 L40,20 L20,40 Z' fill='none' stroke='rgba(255,255,255,0.015)' stroke-width='1'/%3E%3Cpath d='M40,5 L40,35 M25,20 L55,20' fill='none' stroke='rgba(255,255,255,0.015)' stroke-width='0.75'/%3E%3Ccircle cx='20' cy='20' r='1.5' fill='rgba(255,255,255,0.012)'/%3E%3Ccircle cx='60' cy='20' r='1.5' fill='rgba(255,255,255,0.012)'/%3E%3Cpath d='M0,0 L80,0 M0,40 L80,40' fill='none' stroke='rgba(255,255,255,0.012)' stroke-width='0.5' stroke-dasharray='2,2'/%3E%3C/svg%3E");

    /* 2. Divider Border Pattern (Higher opacity for headers, tabs, borders) */
    --cicmany-pattern-border: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0,10 L10,0 L20,10 L30,0 L40,10 L30,20 L20,10 L10,20 Z' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1'/%3E%3Ccircle cx='20' cy='10' r='1' fill='rgba(255,255,255,0.12)'/%3E%3Cpath d='M0,0 L40,0 M0,20 L40,20' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5' stroke-dasharray='1,1'/%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    background-image: 
        var(--cicmany-pattern-body),
        radial-gradient(at 0% 0%, rgba(0, 51, 160, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(238, 28, 37, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.text-silver { color: var(--color-silver); }
.text-beige { color: var(--color-beige); }
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.text-neutral { color: var(--color-neutral); }

/* Main App Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 24px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    margin-bottom: 8px;
}

.main-header::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: var(--cicmany-pattern-border);
    background-repeat: repeat-x;
    background-size: 20px 10px;
    opacity: 0.7;
}

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

.logo-image {
    width: 32px;
    height: 38px;
    object-fit: contain;
    border-radius: 4px;
    filter: drop-shadow(0 0 6px rgba(226, 232, 240, 0.15));
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff 15%, #3b82f6 55%, #ef4444 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 7.5px;
    color: var(--color-text-secondary);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.header-slovak-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.8;
    border: 1.5px solid rgba(229, 211, 179, 0.4);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), 0 0 4px rgba(229, 211, 179, 0.1);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.header-slovak-img:hover {
    opacity: 1;
    border-color: var(--color-beige);
    box-shadow: 0 0 12px rgba(229, 211, 179, 0.4);
    transform: scale(1.05);
}

.header-mode-selector {
    display: flex;
    gap: 4px;
    background-color: rgba(22, 23, 27, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.btn-mode {
    background: none;
    border: none;
    outline: none;
    color: var(--color-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-mode:hover {
    color: var(--color-text-primary);
}

.btn-mode.active {
    background-color: rgba(229, 211, 179, 0.15);
    color: var(--color-beige);
    border: 1px solid rgba(229, 211, 179, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-chart-container {
    flex: 1;
    height: 100px;
    max-width: 800px;
    margin: 0 24px;
    position: relative;
}

@media (max-width: 768px) {
    .header-chart-container {
        display: none;
    }
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-glass {
    background-color: var(--color-card-bg);
    border: 2px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
}

/* Diagonal Slovak Tricolor Corner Decor */
.tricolor-decor {
    position: relative;
    overflow: hidden;
}

.tricolor-decor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, 
        #ffffff 16.6%, 
        #0033a0 16.6%, #0033a0 33.3%, 
        #ee1c25 33.3%, #ee1c25 50%, 
        transparent 50%
    );
    z-index: 5;
    pointer-events: none;
}

/* ==========================================================================
   CONTROLS & CABINETS COMPARISON
   ========================================================================== */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.controls-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.year-control-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.year-control-box label {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.year-val {
    font-size: 22px;
    font-weight: 800;
    margin-left: 6px;
    filter: drop-shadow(0 0 4px currentColor);
}

.control-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 6px;
    margin-bottom: 4px;
}

.gov-select {
    background-color: rgba(9, 10, 12, 0.7);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    padding: 6px 28px 6px 12px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5ba9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    width: 100%;
    max-width: 220px;
}

.gov-select:hover {
    border-color: var(--color-beige-dark);
    color: var(--color-text-primary);
}

.gov-select.select-a:focus {
    border-color: var(--color-silver);
    box-shadow: 0 0 8px rgba(226, 232, 240, 0.25);
}

.gov-select.select-b:focus {
    border-color: var(--color-beige);
    box-shadow: 0 0 8px rgba(229, 211, 179, 0.2);
}

.gov-select option {
    background-color: #16171b;
    color: var(--color-text-primary);
    padding: 8px;
}

.versus-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.versus-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #ffffff 15%, #0033a0 50%, #ee1c25 85%);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 51, 160, 0.5);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.versus-score {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    background-color: rgba(9, 10, 12, 0.6);
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.versus-score-lbl {
    font-size: 8px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}

/* Show Chart Button */
.btn-show-chart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    width: 100%;
}

.btn-show-chart.btn-a {
    background-color: rgba(226, 232, 240, 0.05);
    color: var(--color-silver);
    border-color: rgba(226, 232, 240, 0.2);
}

.btn-show-chart.btn-a:hover {
    background-color: var(--color-silver);
    color: #090a0c;
    box-shadow: 0 0 10px rgba(226, 232, 240, 0.25);
}

.btn-show-chart.btn-b {
    background-color: rgba(229, 211, 179, 0.05);
    color: var(--color-beige);
    border-color: rgba(229, 211, 179, 0.2);
}

.btn-show-chart.btn-b:hover {
    background-color: var(--color-beige);
    color: #090a0c;
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.25);
}

/* Political Cabinets layout */
.cabinets-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    flex: 1;
}

.cabinet-card {
    background-color: rgba(9, 10, 12, 0.4);
    border: 1px solid rgba(212, 202, 168, 0.05);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.cabinet-card.cabinet-a {
    border-left: 4px solid #ffffff;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.05);
}

.cabinet-card.cabinet-b {
    border-left: 4px solid var(--color-beige);
    box-shadow: 0 8px 32px var(--color-beige-glow);
}

.cabinet-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
}

.icon-prime {
    font-size: 18px;
    color: var(--color-text-secondary);
}

.cabinet-a .icon-prime {
    color: var(--color-silver);
}

.cabinet-b .icon-prime {
    color: var(--color-beige);
}

.cabinet-header h4 {
    font-size: 10px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cabinet-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.cabinet-coalition {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.cabinet-note {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(246, 247, 249, 0.8);
    font-style: italic;
    border-top: 1px dashed rgba(212, 202, 168, 0.08);
    padding-top: 4px;
    margin-top: 2px;
}

/* ==========================================================================
   DASHBOARD WRAPPER LAYOUT
   ========================================================================== */
.dashboard-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.left-banner-sidebar {
    flex: 1.5 1 180px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 14px;
}

.widget-title {
    font-size: 14px;
    color: var(--color-beige);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.leadership-widget, .elections-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.leader-item, .election-item {
    background-color: rgba(22, 23, 27, 0.4);
    border: 1px solid rgba(212, 202, 168, 0.04);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.leader-item:hover, .election-item:hover {
    border-color: rgba(229, 211, 179, 0.25);
    background-color: rgba(229, 211, 179, 0.05);
    transform: translateY(-1px);
}

.leader-item:active, .election-item:active {
    transform: translateY(0);
}

.leader-header-row, .election-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.widget-chevron {
    font-size: 8px;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
}

.leader-item.open .widget-chevron, .election-item.open .widget-chevron {
    transform: rotate(180deg);
    color: var(--color-beige);
}

.leader-role, .election-type {
    font-size: 9.5px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.leader-info-btn {
    margin-left: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-beige);
    transition: var(--transition-smooth);
    vertical-align: middle;
    text-transform: none; /* Prevents text-transform uppercase from altering icon rendering */
}

.leader-info-btn:hover {
    color: #ffffff;
    transform: scale(1.25);
    filter: drop-shadow(0 0 4px var(--color-beige-glow));
}

.leader-role i, .election-type i {
    font-size: 9px;
    color: var(--color-beige);
}

.election-type i {
    color: var(--color-silver);
}

.leader-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.election-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-silver);
}

.leader-details, .election-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease, margin-top 0.25s ease, padding-top 0.25s ease;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(246, 247, 249, 0.8);
    border-top: 1px dashed transparent;
    padding-top: 0;
    margin-top: 0;
}

.leader-item.open .leader-details, .election-item.open .election-details {
    max-height: 600px;
    opacity: 1;
    border-top-color: rgba(212, 202, 168, 0.1);
    padding-top: 6px;
    margin-top: 6px;
}

.leader-details p, .election-details p {
    margin: 2px 0;
    font-size: 10.5px;
}

.pres-detail-section {
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.pres-detail-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.pres-detail-section strong {
    color: var(--color-beige);
    font-size: 10.5px;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pres-detail-section p {
    margin: 2px 0;
    font-size: 10px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.pres-advisors-label {
    font-weight: 600;
    color: var(--color-text-secondary) !important;
    margin-top: 6px !important;
}

.widget-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 4px 0;
}

.metrics-sidebar {
    flex: 1.5 1 180px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px;
}

.sidebar-title {
    font-size: 16px;
    color: var(--color-beige);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metrics-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-loading {
    padding: 40px 10px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.grid-loading i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--color-silver);
    display: block;
}

/* Menu Items (no values) */
.metric-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: rgba(22, 23, 27, 0.4);
    border: 1px solid rgba(212, 202, 168, 0.04);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.metric-menu-item:hover {
    background-color: rgba(229, 211, 179, 0.08);
    border-color: var(--color-beige-dark);
}

.metric-menu-item.active {
    background: linear-gradient(135deg, rgba(22, 23, 27, 0.95), rgba(229, 211, 179, 0.1));
    border-color: var(--color-beige);
    box-shadow: 0 0 15px rgba(229, 211, 179, 0.2);
}

.metric-menu-icon {
    font-size: 14px;
    color: var(--color-text-secondary);
    width: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.metric-menu-item.active .metric-menu-icon {
    color: var(--color-silver);
    filter: drop-shadow(0 0 4px var(--color-silver-glow));
}

.metric-menu-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

.metric-menu-item.active .metric-menu-title {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Dropdown Select Menus in Sidebar */
.metrics-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.metrics-dropdown-label {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.metrics-select {
    background-color: rgba(9, 10, 12, 0.7);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 10px 28px 10px 12px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5ba9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    width: 100%;
}

.metrics-select:hover {
    border-color: var(--color-beige-dark);
    color: var(--color-text-primary);
}

.metrics-select.select-a:focus {
    border-color: var(--color-silver);
    box-shadow: 0 0 8px rgba(226, 232, 240, 0.25);
}

.metrics-select.select-b:focus {
    border-color: var(--color-beige);
    box-shadow: 0 0 8px rgba(229, 211, 179, 0.25);
}

.metrics-select option {
    background-color: #16171b;
    color: var(--color-text-primary);
    padding: 8px;
}

/* Main content on the right */
.main-content {
    flex: 7 1 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0; /* Prevent overflow */
}

/* Values inside cabinet cards */
.cabinet-metric-value {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed rgba(212, 202, 168, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* Cabinet chart panel inside cards */
.cabinet-chart-panel {
    margin-top: 12px;
    width: 100%;
}

.canvas-container-mini {
    height: 180px;
    position: relative;
    background-color: rgba(9, 10, 12, 0.5);
    border: 1px solid rgba(212, 202, 168, 0.04);
    border-radius: 8px;
    padding: 6px;
}

.cabinet-metric-value .val-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

.cabinet-metric-value .val-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.cabinet-metric-value .val-num.text-silver {
    color: var(--color-silver);
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.2);
}

.cabinet-metric-value .val-num.text-beige {
    color: var(--color-beige);
    text-shadow: 0 0 8px rgba(229, 211, 179, 0.2);
}

.cabinet-metric-annual-change {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(212, 202, 168, 0.05);
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.val-num-sub {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Unified Delta Row inside Cabinets Section */
.comparison-delta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 16px;
    background-color: rgba(9, 10, 12, 0.4);
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    font-size: 13px;
}

.delta-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.badge-positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.badge-negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--color-red);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.badge-neutral {
    background-color: rgba(149, 165, 166, 0.1);
    color: var(--color-neutral);
    border: 1px solid rgba(149, 165, 166, 0.2);
}

.delta-label-desc {
    color: var(--color-text-secondary);
    font-style: italic;
    font-size: 12px;
}

/* Removed shared chart styles */

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    text-align: center;
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .app-container {
        padding: 12px;
        gap: 16px;
    }

    .main-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
        padding-bottom: 16px;
    }
    .header-logo {
        justify-content: center;
    }
    .header-interactive-menu {
        margin: 0;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .header-interactive-menu .btn-interactive {
        width: 100%;
        justify-content: center;
    }
    .header-mode-selector {
        align-self: center;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .btn-mode {
        flex: 1;
        text-align: center;
    }

    .dashboard-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .left-banner-sidebar {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-self: stretch;
        gap: 16px;
        width: 100%;
        padding: 12px;
    }
    
    .left-banner-sidebar .leadership-widget, 
    .left-banner-sidebar .elections-widget {
        flex: 1 1 240px;
    }
    
    .left-banner-sidebar .widget-divider {
        display: none;
    }
    
    .metrics-sidebar {
        flex: 1;
        align-self: stretch;
    }
    
    .metrics-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: var(--color-beige-dark) rgba(22, 23, 27, 0.4);
    }
    
    .metrics-menu::-webkit-scrollbar {
        height: 6px;
    }
    
    .metrics-menu::-webkit-scrollbar-track {
        background: rgba(22, 23, 27, 0.4);
    }
    
    .metrics-menu::-webkit-scrollbar-thumb {
        background: var(--color-beige-dark);
        border-radius: 3px;
    }
    
    .metric-menu-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .voting-sidebar {
        flex: 1;
        align-self: stretch;
        margin-top: 24px;
    }

    .politicians-list-sidebar {
        display: flex;
        flex-direction: column;
        max-height: 400px;
    }

    .cabinets-comparison {
        grid-template-columns: 1fr;
    }
    
    .controls-layout {
        flex-direction: column;
        align-items: stretch;
    }
    
    .versus-wrapper {
        display: none;
    }
    
    .control-header-row {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .gov-select {
        width: 100%;
        max-width: none;
    }
    
    .comparison-delta-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .sorting-options {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
    }
    .sort-label {
        width: 100%;
        margin-bottom: 4px;
    }
    .btn-sort {
        flex: 1 1 auto;
        justify-content: center;
    }
    .overall-flags-container {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
}

/* PM Avatar Wrapper & Winner Badges */
.cabinet-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

@keyframes trophyPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(241, 196, 15, 0.4)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(241, 196, 15, 0.7)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(241, 196, 15, 0.4)); }
}

.better-gov-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: trophyPulse 2s infinite ease-in-out;
}

.better-gov-badge.badge-a, .better-gov-badge.badge-b {
    background-color: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.35);
}

.pm-avatar-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
    background-color: rgba(9, 10, 12, 0.6);
    flex-shrink: 0;
    position: relative;
}

.pm-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-avatar-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-text-secondary);
}

.pm-avatar-wrapper .pm-avatar-placeholder {
    display: flex;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 4px rgba(46, 204, 113, 0.1);
    }
    100% {
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.35);
    }
}

/* Measures Styling */
.btn-measures {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(212, 202, 168, 0.15);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    width: 100%;
    background-color: rgba(22, 23, 27, 0.4);
    color: var(--color-text-secondary);
}

.btn-measures:hover {
    background-color: rgba(229, 211, 179, 0.08);
    color: var(--color-text-primary);
    border-color: var(--color-beige-dark);
}

.cabinet-measures-panel {
    position: absolute;
    bottom: 46px; /* Sits right above the toggle button */
    left: 8px;
    right: 8px;
    background: rgba(14, 15, 18, 0.98); /* Solid dark glass backdrop to cover metrics/notes under it */
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.cabinet-measures-panel.open {
    max-height: calc(100% - 66px); /* Cover the card body but keep the PM header visible */
    opacity: 1;
    pointer-events: auto;
}

.cabinet-measures-panel::-webkit-scrollbar {
    width: 4px;
}

.cabinet-measures-panel::-webkit-scrollbar-track {
    background: transparent;
}

.cabinet-measures-panel::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.measures-box {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.measures-pos h5, .measures-neg h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.measures-pos ul, .measures-neg ul {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.measures-pos li, .measures-neg li {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(246, 247, 249, 0.85);
    position: relative;
    padding-left: 12px;
}

.measures-pos li::before {
    content: "•";
    color: var(--color-green);
    position: absolute;
    left: 0;
}

.measures-neg li::before {
    content: "•";
    color: var(--color-red);
    position: absolute;
    left: 0;
}

/* ==========================================================================
   INTERACTIVE TOOLS (COALITIONS & POLITICIANS)
   ========================================================================== */

.header-interactive-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 24px;
}

.btn-interactive {
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

#btn-coalition-builder {
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.7), rgba(0, 90, 220, 0.7));
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 51, 160, 0.4);
}

#btn-coalition-builder:hover {
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.95), rgba(0, 90, 220, 0.95));
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(0, 51, 160, 0.6);
    transform: translateY(-1.5px);
}

#btn-voting-poll {
    background: linear-gradient(135deg, rgba(238, 28, 37, 0.6), rgba(184, 20, 27, 0.6));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fff;
    box-shadow: 0 4px 15px rgba(238, 28, 37, 0.3);
}

#btn-voting-poll:hover {
    background: linear-gradient(135deg, rgba(238, 28, 37, 0.85), rgba(184, 20, 27, 0.85));
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.5);
    transform: translateY(-1.5px);
}

.btn-interactive i {
    font-size: 14px;
    transition: var(--transition-smooth);
}

.btn-interactive:hover i {
    transform: scale(1.1);
}

/* Modal Overlay & Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    border-radius: 20px;
}

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

/* Modal Header & Tabs */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(9, 10, 12, 0.4);
}

.modal-tabs {
    display: flex;
    gap: 8px;
}

.modal-tab-btn {
    background: none;
    border: none;
    outline: none;
    color: var(--color-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-tab-btn:hover {
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.modal-tab-btn.active {
    color: var(--color-beige);
    background-color: rgba(229, 211, 179, 0.1);
    border: 1px solid rgba(229, 211, 179, 0.15);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-btn:hover {
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modal Body */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background-color: rgba(9, 10, 12, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease-in-out forwards;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

/* Coalition Calculator Layout */
.coalition-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .coalition-layout {
        grid-template-columns: 1fr;
    }
}

.party-selection-panel h4, .scenarios-card h4, .coalition-status-panel h3 {
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-primary);
}

.parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.party-card {
    background-color: rgba(9, 10, 12, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    user-select: none;
}

.party-card::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.party-card.selected::after {
    background-color: var(--party-color);
    box-shadow: 0 0 8px var(--party-color);
}

.party-card:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 211, 179, 0.25);
    background-color: rgba(15, 16, 20, 0.85);
}

.party-card.selected {
    border-color: var(--party-color);
    box-shadow: 0 0 15px rgba(var(--party-color-rgb), 0.15);
    background-color: rgba(var(--party-color-rgb), 0.06);
}

.party-logo-placeholder {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--party-color);
    text-shadow: 0 0 8px rgba(var(--party-color-rgb), 0.3);
}

.party-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-primary);
}

.party-details {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4px;
    margin-top: 4px;
}

/* Coalition status on the right side */
.coalition-status-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-card, .scenarios-card {
    background-color: rgba(14, 15, 18, 0.55);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
}

.seats-progress-wrapper {
    margin-bottom: 16px;
}

.seats-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--color-text-secondary);
}

.seats-total {
    font-weight: 800;
    font-size: 16px;
    color: var(--color-text-primary);
}

.seats-progress-bar-bg {
    position: relative;
    height: 18px;
    background-color: rgba(9, 10, 12, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 9px;
    overflow: hidden;
}

.seats-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-silver), var(--color-beige));
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.4);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Markers for 76 and 90 seats */
.seats-marker-76, .seats-marker-90 {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.35);
    z-index: 5;
}

.seats-marker-76 {
    left: 50.6%; /* 76 / 150 = 50.67% */
}

.seats-marker-76::after {
    content: "76";
    position: absolute;
    bottom: -1px;
    left: -6px;
    font-size: 7px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
}

.seats-marker-90 {
    left: 60%; /* 90 / 150 = 60% */
}

.seats-marker-90::after {
    content: "90";
    position: absolute;
    bottom: -1px;
    left: -6px;
    font-size: 7px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
}

.percentage-row {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.percentage-row strong {
    color: var(--color-beige);
    font-size: 15px;
}

.majority-status {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.status-red {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--color-red);
}

.status-green {
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--color-green);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
}

.status-gold {
    background-color: rgba(241, 196, 15, 0.15);
    border: 1px solid rgba(241, 196, 15, 0.35);
    color: #f1c40f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.15);
}

.selected-parties-list {
    min-height: 80px;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    background-color: rgba(9, 10, 12, 0.3);
}

.no-parties-text {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-style: italic;
    line-height: 1.4;
    width: 100%;
}

.selected-party-pill {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: rgba(var(--party-color-rgb), 0.15);
    border: 1px solid var(--party-color);
    color: var(--party-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.selected-party-pill:hover {
    background-color: var(--party-color);
    color: #000;
}

.btn-reset-coalition {
    width: 100%;
    padding: 8px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-reset-coalition:hover {
    color: var(--color-text-primary);
    border-color: var(--color-red);
    background-color: rgba(231, 76, 60, 0.05);
}

/* Preset scenarios cards list */
.scenario-item {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background-color: rgba(9, 10, 12, 0.3);
}

.scenario-item:last-child {
    margin-bottom: 0;
}

.scenario-item:hover {
    border-color: var(--color-beige);
    background-color: rgba(229, 211, 179, 0.05);
    transform: translateX(2px);
}

.scenario-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--color-beige);
    margin-bottom: 2px;
}

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

/* Politician popularity vote styles */
.politician-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 24px auto;
}

.politician-intro h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.politician-intro p {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.politicians-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 750px;
    margin: 0 auto;
}

.politician-card {
    background-color: rgba(14, 15, 18, 0.65);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.politician-card:hover {
    border-color: rgba(229, 211, 179, 0.25);
    background-color: rgba(18, 19, 23, 0.85);
}

.politician-avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(229, 211, 179, 0.08);
    border: 1px solid rgba(229, 211, 179, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-beige);
    font-size: 24px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.politician-card:hover .politician-avatar-placeholder {
    background-color: rgba(229, 211, 179, 0.15);
    color: var(--color-text-primary);
    transform: scale(1.05);
}

.politician-info {
    flex: 1;
    min-width: 0;
}

.politician-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.politician-desc {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.politician-vote-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: 180px;
    flex-shrink: 0;
}

.btn-vote {
    background-color: rgba(229, 211, 179, 0.1);
    border: 1px solid rgba(229, 211, 179, 0.2);
    border-radius: 6px;
    color: var(--color-beige);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 11px;
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-vote:hover {
    background-color: var(--color-beige);
    color: #000;
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.25);
}

.btn-vote.voted {
    background-color: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.35);
    color: var(--color-green);
    cursor: default;
    pointer-events: none;
}

.vote-stats {
    font-size: 10px;
    color: var(--color-text-secondary);
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.vote-progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(9, 10, 12, 0.7);
    border-radius: 3px;
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

.vote-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-text-secondary), var(--color-beige));
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (max-width: 600px) {
    .politician-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .politician-vote-section {
        width: 100%;
        align-items: flex-start;
    }
}

/* Benchmark comparison row styles */
.comparison-benchmark-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding: 12px 20px;
    background-color: rgba(9, 10, 12, 0.4);
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.benchmark-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.benchmark-col.col-a {
    align-items: flex-start;
    text-align: left;
}

.benchmark-col.col-b {
    align-items: flex-end;
    text-align: right;
}

.benchmark-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}

.benchmark-values-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.benchmark-col.col-b .benchmark-values-list {
    align-items: flex-end;
}

.benchmark-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.benchmark-item span {
    color: rgba(246, 247, 249, 0.75);
}

.benchmark-item strong {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.benchmark-divider-line {
    width: 1px;
    height: 30px;
    background-color: rgba(212, 202, 168, 0.15);
}

@media (max-width: 768px) {
    .comparison-benchmark-row {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    
    .benchmark-col.col-a, .benchmark-col.col-b {
        align-items: center;
        text-align: center;
    }
    
    .benchmark-divider-line {
        display: none;
    }
}

/* Sidebar Map Image Styling */
.sidebar-image-box {
    margin-top: 24px;
    padding: 10px;
    background-color: rgba(9, 10, 12, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-map-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(212, 202, 168, 0.1);
    transition: transform 0.3s ease;
}

.sidebar-map-img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   VOTING SIDEBAR & COMPACT CARD STYLES
   ========================================================================== */
.voting-sidebar {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.politicians-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.politicians-list-sidebar::-webkit-scrollbar {
    width: 4px;
}

.politicians-list-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.politicians-list-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.sidebar-politician-card {
    background-color: rgba(9, 10, 12, 0.4);
    border: 1px solid rgba(212, 202, 168, 0.05);
    border-radius: 10px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-smooth);
}

.sidebar-politician-card:hover {
    border-color: rgba(229, 211, 179, 0.15);
    background-color: rgba(14, 15, 18, 0.6);
}

.sidebar-politician-header {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.sidebar-politician-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.sidebar-politician-avatar-wrapper {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--color-border);
    background-color: rgba(9, 10, 12, 0.6);
    transition: var(--transition-smooth);
}

.sidebar-politician-avatar-wrapper:not(.voted):hover {
    transform: scale(1.08);
    border-color: var(--color-beige);
    box-shadow: 0 0 8px rgba(229, 211, 179, 0.4);
}

.sidebar-politician-avatar-wrapper.voted {
    border-color: var(--color-green);
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.3);
}

.sidebar-politician-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-politician-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.sidebar-politician-avatar-voted-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    color: var(--color-green);
    background-color: var(--color-bg);
    font-size: 10px;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.sidebar-politician-info {
    flex: 1;
    min-width: 0;
}

.sidebar-politician-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-politician-votes-info {
    font-size: 9.5px;
    color: var(--color-text-secondary);
    display: flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}

/* compact vote button removed - voting is now done by clicking the avatar image */

.sidebar-vote-progress-bar-bg {
    width: 100%;
    height: 4px;
    background-color: rgba(9, 10, 12, 0.6);
    border-radius: 2px;
    overflow: hidden;
}

.sidebar-vote-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-text-secondary), var(--color-beige));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Spacing and style enhancements for cabinet note */
.cabinet-note {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(246, 247, 249, 0.8);
    font-style: italic;
    border-top: 1px dashed rgba(212, 202, 168, 0.08);
    padding-top: 6px;
    margin-top: 6px;
    margin-bottom: 4px;
    width: 100%;
}

/* Flag badges styling */
.country-flag-container {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.country-flag-svg {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Parameter dynamic explanation box in sidebar */
.metric-description-box {
    margin-top: 14px;
    padding: 10px 12px;
    background-color: rgba(9, 10, 12, 0.4);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    text-align: left;
    transition: var(--transition-smooth);
}

#metric-desc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-beige);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#metric-desc-text {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(246, 247, 249, 0.8);
    font-style: italic;
    margin: 0;
}

/* Media queries for 3-column layout responsiveness */
/* 3-column responsive media query merged above at 768px */

/* Poll Modal Styles */
.politicians-list-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px;
    margin-top: 12px;
}

.politicians-list-modal::-webkit-scrollbar {
    width: 4px;
}

.politicians-list-modal::-webkit-scrollbar-track {
    background: transparent;
}

.politicians-list-modal::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.modal-politician-card {
    background-color: rgba(9, 10, 12, 0.4);
    border: 1px solid rgba(212, 202, 168, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    text-align: center;
}

.modal-politician-card:hover {
    border-color: rgba(229, 211, 179, 0.25);
    background-color: rgba(14, 15, 18, 0.6);
    transform: translateY(-2px);
}

.modal-politician-card.voted {
    border-color: var(--color-green);
    background-color: rgba(46, 204, 113, 0.04);
    cursor: default;
}

.modal-politician-avatar-container {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--color-border);
    background-color: rgba(9, 10, 12, 0.6);
}

.modal-politician-card.voted .modal-politician-avatar-container {
    border-color: var(--color-green);
}

.modal-politician-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-politician-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text-secondary);
}

.modal-politician-voted-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    color: var(--color-green);
    background-color: var(--color-bg);
    font-size: 11px;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.modal-politician-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.modal-politician-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-politician-votes {
    font-size: 9.5px;
    color: var(--color-text-secondary);
}

.modal-vote-progress-bar-bg {
    width: 100%;
    height: 4px;
    background-color: rgba(9, 10, 12, 0.6);
    border-radius: 2px;
    overflow: hidden;
    margin-top: auto;
}

.modal-vote-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-text-secondary), var(--color-beige));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Modal Leaderboard & Suggestion Layout */
.poll-modal-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: start;
    text-align: left;
}

@media (max-width: 768px) {
    .poll-modal-layout {
        grid-template-columns: 1fr;
    }
}

.poll-leaderboard-section {
    display: flex;
    flex-direction: column;
}

.modal-politician-rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(9, 10, 12, 0.85);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 6px;
    z-index: 5;
}

/* Color codes for top 3 leaderboard positions */
.modal-politician-card:nth-child(1) .modal-politician-rank-badge {
    background-color: rgba(241, 196, 15, 0.18);
    border-color: #f1c40f;
    color: #f1c40f;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.25);
}

.modal-politician-card:nth-child(2) .modal-politician-rank-badge {
    background-color: rgba(226, 232, 240, 0.18);
    border-color: #e2e8f0;
    color: #e2e8f0;
}

.modal-politician-card:nth-child(3) .modal-politician-rank-badge {
    background-color: rgba(205, 127, 50, 0.18);
    border-color: #cd7f32;
    color: #cd7f32;
}

/* Suggestion Column Styling */
.poll-suggestion-section {
    background-color: rgba(22, 23, 27, 0.55);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.poll-suggestion-section h3 {
    font-size: 16px;
    color: var(--color-beige);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-desc {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 11px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.form-group input, .form-group textarea {
    background-color: rgba(9, 10, 12, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    padding: 8px 10px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-beige);
    box-shadow: 0 0 8px rgba(229, 211, 179, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-submit-suggestion {
    background: linear-gradient(135deg, rgba(211, 158, 0, 0.6), rgba(255, 140, 0, 0.6));
    border: 1px solid rgba(255, 140, 0, 0.4);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-submit-suggestion:hover {
    background: linear-gradient(135deg, rgba(211, 158, 0, 0.85), rgba(255, 140, 0, 0.85));
    border-color: #ff8c00;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.45);
}

.suggestion-success-alert {
    background-color: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 6px;
    color: var(--color-green);
    font-size: 11px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.saved-suggestions-box {
    border-top: 1px dashed var(--color-border);
    padding-top: 12px;
    margin-top: 4px;
}

.saved-suggestions-box h4 {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

#saved-suggestions-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
}

#saved-suggestions-list::-webkit-scrollbar {
    width: 3px;
}

#saved-suggestions-list::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

#saved-suggestions-list li {
    font-size: 11px;
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   NEWS TICKER BAR
   ========================================================================== */
.news-ticker-bar {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(187, 164, 128, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6px 12px;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
}

.news-ticker-label {
    background: linear-gradient(135deg, #e74c3c, #e67e22);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 22px;
}

.news-ticker-scroll {
    display: flex;
    align-items: center;
    gap: 50px;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
    animation: tickerMove 25s linear infinite;
}

.news-ticker-scroll:hover {
    animation-play-state: paused;
    cursor: default;
}

.news-ticker-item {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #8e7a5d;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@keyframes tickerMove {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ==========================================================================
   UNIFIED CABINETS LIST & HORIZONTAL CHART STYLING
   ========================================================================== */
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-beige);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorting-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.btn-sort {
    background-color: rgba(22, 23, 27, 0.4);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-sort:hover {
    color: var(--color-text-primary);
    border-color: var(--color-beige-dark);
}

.btn-sort.active {
    background-color: rgba(229, 211, 179, 0.15);
    color: var(--color-beige);
    border-color: var(--color-beige);
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.15);
}

.cabinets-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.cabinet-list-item {
    background-color: rgba(22, 23, 27, 0.4);
    border: 1px solid rgba(212, 202, 168, 0.05);
    border-radius: 10px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.cabinet-list-item:hover {
    border-color: rgba(229, 211, 179, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cabinet-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    gap: 16px;
    flex-wrap: nowrap;
}

.cabinet-item-pm-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 240px;
    min-width: 200px;
}

.pm-avatar-wrapper-mini {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    background-color: rgba(9, 10, 12, 0.6);
    flex-shrink: 0;
}

.pm-avatar-mini {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-item-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cabinet-item-years {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-beige-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cabinet-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 1px 0;
}

.cabinet-item-coalition {
    font-size: 10px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* HORIZONTAL CHART BAR */
.cabinet-item-chart-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 150px;
}

.cabinet-item-bar-container {
    flex: 1;
    height: 16px;
    background-color: rgba(9, 10, 12, 0.6);
    border: 1px solid rgba(212, 202, 168, 0.08);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.cabinet-item-bar-container .zero-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.25);
    z-index: 2;
}

.cabinet-item-bar-container .bar-fill {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bar-fill.bar-green {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.3);
}

.bar-fill.bar-red {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.3);
}

.bar-fill.bar-neutral {
    background: linear-gradient(90deg, #95a5a6, #7f8c8d);
}

.cabinet-item-value-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1;
    text-align: right;
}

.cabinet-item-value-display .main-val {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.cabinet-item-value-display .sub-val {
    font-size: 9.5px;
    font-weight: 600;
}

.cabinet-item-chevron {
    color: var(--color-text-secondary);
    font-size: 12px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.cabinet-list-item.open {
    border-color: rgba(229, 211, 179, 0.3);
    background-color: rgba(22, 23, 27, 0.6);
}

.cabinet-list-item.open .cabinet-item-chevron {
    transform: rotate(180deg);
    color: var(--color-beige);
}

/* DETAILS DRAWER */
.cabinet-item-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    border-top: 1px dashed transparent;
    background-color: rgba(9, 10, 12, 0.4);
}

.cabinet-list-item.open .cabinet-item-details {
    max-height: 600px;
    opacity: 1;
    border-top-color: rgba(212, 202, 168, 0.1);
    padding: 14px 16px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.details-column h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-column ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.details-column li {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(246, 247, 249, 0.85);
    position: relative;
    padding-left: 12px;
}

.pos-measures li::before {
    content: "•";
    color: var(--color-green);
    position: absolute;
    left: 0;
}

.neg-measures li::before {
    content: "•";
    color: var(--color-red);
    position: absolute;
    left: 0;
}

.global-influence p {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(246, 247, 249, 0.85);
    margin-bottom: 6px;
}

.global-influence p:last-child {
    margin-bottom: 0;
}

/* Responsive updates for list */
@media (max-width: 900px) {
    .cabinet-item-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .cabinet-item-pm-info {
        flex: 1 1 100%;
    }
    
    .cabinet-item-chart-section {
        flex: 1 1 calc(100% - 30px);
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Overall rankings medal styling */
.overall-medal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.overall-medal.medal-gold {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.15);
}

.overall-medal.medal-silver {
    background: rgba(192, 192, 192, 0.15);
    color: #e2e8f0;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.overall-medal.medal-bronze {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

/* Top 3 cabinet item background highlights for Overall Ranking */
.cabinet-list-item.rank-gold {
    background-color: rgba(255, 215, 0, 0.04) !important;
    border-color: rgba(255, 215, 0, 0.15) !important;
}
.cabinet-list-item.rank-gold:hover {
    background-color: rgba(255, 215, 0, 0.07) !important;
    border-color: rgba(255, 215, 0, 0.25) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.08) !important;
}

.cabinet-list-item.rank-silver {
    background-color: rgba(226, 232, 240, 0.03) !important;
    border-color: rgba(226, 232, 240, 0.12) !important;
}
.cabinet-list-item.rank-silver:hover {
    background-color: rgba(226, 232, 240, 0.06) !important;
    border-color: rgba(226, 232, 240, 0.2) !important;
    box-shadow: 0 4px 15px rgba(226, 232, 240, 0.05) !important;
}

.cabinet-list-item.rank-bronze {
    background-color: rgba(205, 127, 50, 0.03) !important;
    border-color: rgba(205, 127, 50, 0.12) !important;
}
.cabinet-list-item.rank-bronze:hover {
    background-color: rgba(205, 127, 50, 0.06) !important;
    border-color: rgba(205, 127, 50, 0.2) !important;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.05) !important;
}

.cabinet-item-rank-index {
    font-size: 13px;
    font-weight: 800;
    color: rgba(229, 211, 179, 0.65);
    min-width: 20px;
    text-align: right;
    font-family: 'Outfit', sans-serif;
    margin-right: 4px;
}

@keyframes flagWave {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.waving-flag {
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    border-radius: 2px;
    animation: flagWave 2.4s ease-in-out infinite;
    transform-origin: left center;
    width: 36px;
    height: 24px;
}

.flag-sk {
    animation-delay: 0.6s;
    margin-left: 8px;
}

.flag-eu {
    animation-delay: 0.1s;
    margin-left: 4px;
}

.overall-flags-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.overall-flags-container .waving-flag {
    margin-left: 0;
}

@media (max-width: 500px) {
    .cabinet-item-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        position: relative;
    }
    .cabinet-item-pm-info {
        flex: 1 1 auto;
    }
    .cabinet-item-chart-section {
        flex: 1 1 auto;
        width: 100%;
    }
    .cabinet-item-value-display {
        flex: 1 1 auto;
        align-items: flex-start;
        text-align: left;
        border-top: 1px dashed rgba(255, 255, 255, 0.08);
        padding-top: 6px;
    }
    .cabinet-item-chevron {
        position: absolute;
        top: 16px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .parties-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    .party-card {
        padding: 10px;
    }
}

/* ==========================================================================
   PRESIDENT DETAIL MODAL STYLES
   ========================================================================== */
.president-overview-layout {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 24px;
    align-items: start;
}

.president-portrait-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(9, 10, 12, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.president-portrait-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-beige);
    box-shadow: 0 0 15px var(--color-beige-glow);
    background-color: rgba(0, 0, 0, 0.5);
}

.president-title-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-primary);
    margin-top: 14px;
}

.president-sub-badge {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--color-beige-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.president-stats-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.salary-card {
    background-color: rgba(22, 23, 27, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.salary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.salary-row strong {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.salary-note {
    font-size: 10px;
    color: var(--color-text-secondary);
    line-height: 1.45;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: 4px;
}

.president-bio {
    font-size: 12px;
    color: rgba(246, 247, 249, 0.85);
    line-height: 1.5;
}

/* Kancelária / Team */
.office-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.office-section {
    background-color: rgba(22, 23, 27, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
}

.office-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.office-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.office-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
}

.office-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.office-list li strong {
    color: var(--color-text-primary);
}

.office-list li span {
    color: var(--color-text-secondary);
    font-size: 11.5px;
}

.advisors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.advisors-grid li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.advisors-grid li:hover {
    border-color: rgba(229, 211, 179, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
}

.advisors-grid li strong {
    font-size: 12px;
    color: var(--color-text-primary);
}

.advisors-grid li span {
    font-size: 11px;
    color: var(--color-text-secondary);
}

/* Zákony a legislatíva */
.legislation-columns-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.leg-column {
    background-color: rgba(22, 23, 27, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.leg-column h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.laws-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.laws-list::-webkit-scrollbar {
    width: 3px;
}

.laws-list::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.laws-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.laws-list li:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.law-date {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.laws-list li strong {
    font-size: 12px;
    color: var(--color-text-primary);
}

.law-desc {
    font-size: 11px;
    color: rgba(246, 247, 249, 0.8);
    line-height: 1.4;
}

/* Responsiveness overrides for President Detail Modal */
@media (max-width: 650px) {
    .president-overview-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .advisors-grid {
        grid-template-columns: 1fr;
    }
    
    .legislation-columns-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   ROTATING QUOTES WIDGET (HEADER LAYOUT)
   ========================================================================== */
.header-quote-box {
    flex: 1;
    max-width: 380px;
    margin: 0 24px;
    padding: 6px 14px;
    background-color: rgba(22, 23, 27, 0.25);
    border-left: 2px solid var(--color-beige);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: opacity 0.35s ease-in-out;
    min-width: 0;
    position: relative;
}

.header-quote-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(246, 247, 249, 0.85);
    font-style: italic;
    margin: 0;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.header-quote-author {
    font-family: 'Outfit', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--color-beige);
    align-self: flex-end;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Quote Transition Class */
.header-quote-box.fade-out {
    opacity: 0;
}

/* Responsive Overrides for Header Quote Box */
@media (max-width: 768px) {
    .header-quote-box {
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
        border-left: none;
        border-top: 1px solid rgba(212, 202, 168, 0.15);
        border-bottom: 1px solid rgba(212, 202, 168, 0.15);
        border-radius: 0;
        padding: 8px 4px;
        align-items: center;
        text-align: center;
        background-color: transparent;
    }
    .header-quote-text {
        -webkit-line-clamp: 3;
    }
    .header-quote-author {
        align-self: center;
    }
}

/* ==========================================================================
   SLOVAK PARLIAMENT MODULE (NÁRODNÁ RADA SR)
   ========================================================================== */
.parliament-module {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 24px;
    margin-bottom: 20px;
    align-items: stretch;
    box-sizing: border-box;
}

.parliament-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.parliament-left {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 20px;
    position: relative;
}

.parliament-right {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 20px;
    position: relative;
}

.parliament-counter {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   LIVE COST COUNTER STYLES
   ========================================================================== */
.counter-display-box {
    background: rgba(255, 215, 0, 0.03);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.counter-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0aec0;
    display: block;
    margin-bottom: 6px;
}

.counter-value {
    font-family: 'Outfit', 'Courier New', monospace;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.counter-stats-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.counter-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
}

.counter-stat-row:last-child {
    border-bottom: none;
}

.party-funding-row {
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.parliament-header-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    min-height: 96px;
}

.parliament-info-side {
    flex: 1.2;
    min-width: 0;
}

.parliament-bill-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.parliament-bill-side-title {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.clickable-bill {
    cursor: pointer;
    user-select: none;
}

.clickable-bill:hover {
    border-color: rgba(229, 211, 179, 0.35) !important;
    background-color: rgba(229, 211, 179, 0.05) !important;
    transform: translateY(-1px);
}

.clickable-bill:active {
    transform: translateY(0);
}

/* Bill details overlay ("vizitka zákona") */
.parliament-bill-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 14, 30, 0.98);
    border: 1.5px dashed rgba(229, 211, 179, 0.35);
    border-radius: 12px;
    padding: 16px;
    z-index: 10;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    animation: bioFadeIn 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bill-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    outline: none;
    font-size: 20px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.bill-close-btn:hover {
    color: var(--color-beige);
}

.bill-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
    text-align: left;
}

.bill-card-content::-webkit-scrollbar {
    width: 4px;
}

.bill-card-content::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 2px;
}

.bill-card-content h5 {
    font-size: 13px;
    color: #ffffff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    line-height: 1.4;
}

.bill-detail-meta {
    font-size: 10px;
    color: var(--color-text-secondary);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bill-detail-meta p {
    margin: 0;
}

.bill-detail-desc {
    font-size: 10.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.parliament-col-title {
    font-size: 13.5px;
    color: var(--color-beige);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parliament-desc {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--color-text-secondary);
    margin: 0;
}

.parliament-desc-short {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--color-text-secondary);
    margin: 0;
}

.parliament-leaders {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.deputies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.deputies-grid .leader-chip:nth-child(3):last-child {
    grid-column: span 2;
}

/* Leader Chips */
.leader-chip {
    background-color: rgba(22, 23, 27, 0.45);
    border: 1px solid rgba(212, 202, 168, 0.08);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    gap: 8px;
    transition: var(--transition-smooth);
    user-select: none;
    box-sizing: border-box;
}

.leader-chip:hover {
    border-color: rgba(229, 211, 179, 0.35);
    background-color: rgba(229, 211, 179, 0.04);
    transform: translateY(-1px);
}

.leader-chip:active {
    transform: translateY(0);
}

.leader-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.leader-info strong {
    font-size: 11.5px;
    color: var(--color-text-primary);
}

.leader-info span {
    font-size: 9px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leader-salary-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    min-width: 65px;
}

.leader-salary-badge .salary-amount {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-beige);
}

.leader-salary-badge .salary-label {
    font-size: 8px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

/* Bio details overlay ("vizitka") */
.parliament-bio-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 14, 30, 0.98);
    border: 1.5px dashed rgba(229, 211, 179, 0.35);
    border-radius: 12px;
    padding: 16px;
    z-index: 10;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    animation: bioFadeIn 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bio-header-layout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    text-align: left;
}

.bio-photo-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--color-beige);
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.bio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-name-role {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@keyframes bioFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.bio-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    outline: none;
    font-size: 20px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.bio-close-btn:hover {
    color: var(--color-beige);
}

.bio-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
    text-align: left;
}

.bio-content::-webkit-scrollbar {
    width: 4px;
}

.bio-content::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 2px;
}

.bio-content h5 {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.bio-content span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.bio-content p {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

#bio-party {
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

#bio-salary {
    font-weight: 600;
    color: var(--color-beige);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

/* Middle Column: Scrolling Bills */
.scrolling-bills-container {
    height: 68px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bill-item {
    background-color: rgba(22, 23, 27, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.bill-item.fade-out {
    opacity: 0;
    transform: translateY(-5px);
}

.bill-status {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-reading {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-submitted {
    background-color: rgba(229, 211, 179, 0.15);
    color: var(--color-beige);
    border: 1px solid rgba(229, 211, 179, 0.25);
}

.status-final {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--color-green);
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.bill-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text-primary);
    text-align: left;
}

.bill-author {
    font-size: 9.5px;
    color: var(--color-text-secondary);
    text-align: left;
}

/* Right Column: Button & Details */
.btn-parliament-composition {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(229, 211, 179, 0.12) 0%, rgba(187, 164, 128, 0.05) 100%);
    border: 1.5px solid var(--color-beige);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-parliament-composition:hover {
    background: linear-gradient(135deg, rgba(229, 211, 179, 0.22) 0%, rgba(187, 164, 128, 0.12) 100%);
    box-shadow: 0 0 15px rgba(229, 211, 179, 0.25);
    transform: translateY(-1px);
    color: var(--color-beige);
}

.btn-parliament-composition:active {
    transform: translateY(0);
}

.parliament-mini-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 12px 0;
    background-color: rgba(22, 23, 27, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: left;
}

.mini-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.mini-stat-row strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.mini-stat-row i {
    margin-right: 6px;
    font-size: 10px;
}

/* ==========================================================================
   PARLIAMENT SUBPAGE SPECIFIC STYLES
   ========================================================================== */
.subpage-body {
    background-color: var(--color-bg);
}

.subpage-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.parliament-composition-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.parliament-comp-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.comp-icon-box {
    width: 54px;
    height: 54px;
    background-color: rgba(229, 211, 179, 0.08);
    border: 1.5px solid var(--color-beige);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comp-icon-box i {
    font-size: 26px;
    filter: drop-shadow(0 2px 8px rgba(229, 211, 179, 0.25));
}

.comp-title-box h2 {
    font-size: 22px;
    margin: 0 0 4px 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.comp-title-box p {
    font-size: 13px;
    margin: 0;
}

.cicmany-divider-small {
    height: 12px;
    width: 100%;
    background-image: var(--cicmany-pattern-border);
    background-repeat: repeat-x;
    background-size: 20px 10px;
    opacity: 0.5;
    margin: 8px 0;
}

.placeholder-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.info-item {
    background-color: rgba(22, 23, 27, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
    text-align: left;
}

.info-item:hover {
    border-color: rgba(229, 211, 179, 0.2);
    transform: translateY(-2px);
}

.info-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.info-item h3 {
    font-size: 15px;
    color: var(--color-text-primary);
    margin: 0;
}

.info-item p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
}

.upcoming-status-alert {
    background-color: rgba(229, 211, 179, 0.04);
    border: 1px dashed rgba(229, 211, 179, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    text-align: left;
}

.upcoming-status-alert i {
    font-size: 26px;
}

.alert-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-text h4 {
    font-size: 14px;
    color: var(--color-beige);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-text p {
    font-size: 11.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.btn-back {
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVENESS FOR PARLIAMENT MODULE
   ========================================================================== */
@media (max-width: 900px) {
    .parliament-module {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .parliament-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .parliament-right {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .parliament-header-layout {
        flex-direction: column;
        gap: 12px;
    }
    
    .placeholder-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .parliament-comp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   PARLIAMENT SUBPAGE NEW STYLES
   ========================================================================== */
.parliament-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 24px;
    align-items: start;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .parliament-grid {
        grid-template-columns: 1fr;
    }
}

/* Hemicycle visualizer */
.hemicycle-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: rgba(22, 23, 27, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.hemicycle-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px 0;
    overflow-x: auto;
}

.hemicycle-container {
    position: relative;
    width: 460px;
    height: 230px;
    margin: 0 auto;
}

.hemicycle-seat {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hemicycle-seat:hover {
    transform: scale(1.4);
    box-shadow: 0 0 10px currentColor;
    z-index: 10;
}

/* Tooltip */
.parliament-tooltip {
    position: absolute;
    background: rgba(8, 14, 30, 0.95);
    border: 1px solid var(--color-beige);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
    display: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
}

/* Party Seats Legend */
.party-legend {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 4px;
    border-radius: 4px;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.legend-name {
    font-weight: 500;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-seats {
    margin-left: auto;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--color-text-secondary);
    font-weight: bold;
}

/* Statistics section */
.stats-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: rgba(22, 23, 27, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.stats-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .stats-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.stat-box-title {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-beige);
    margin: 0 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Attendance list */
.search-mps-wrapper {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
}

.search-mps-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-beige);
    opacity: 0.7;
    font-size: 11px;
    pointer-events: none;
}

.search-mps-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    background: rgba(10, 20, 45, 0.4);
    border: 1px solid rgba(229, 211, 179, 0.15);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    outline: none;
    transition: var(--transition-smooth);
}

.search-mps-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.6;
}

.search-mps-input:focus {
    background: rgba(10, 20, 45, 0.6);
    border-color: var(--color-beige);
    box-shadow: 0 0 8px rgba(229, 211, 179, 0.15);
}

.attendance-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for attendance list */
.attendance-list::-webkit-scrollbar {
    width: 5px;
}

.attendance-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.attendance-list::-webkit-scrollbar-thumb {
    background: rgba(229, 211, 179, 0.2);
    border-radius: 3px;
}

.attendance-list::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 211, 179, 0.4);
}

.attendance-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attendance-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.attendance-label-row span {
    font-weight: 500;
}

.attendance-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.attendance-bar-fill {
    height: 100%;
    border-radius: 3px;
}

/* Activity Metrics */
.activity-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.activity-metric-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.activity-metric-box span {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

.activity-metric-box strong {
    font-size: 18px;
    color: var(--color-beige);
    font-family: 'Outfit', sans-serif;
}

.activity-metric-box p {
    margin: 0;
    font-size: 9.5px;
    color: var(--color-text-secondary);
}

/* Split view bills */
.bills-list-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: rgba(22, 23, 27, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.subpage-bills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subpage-bill-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.subpage-bill-item:hover {
    border-color: rgba(229, 211, 179, 0.25);
    background: rgba(229, 211, 179, 0.03);
    transform: translateY(-1px);
}

.subpage-bill-item.active {
    border-color: var(--color-beige);
    background: rgba(229, 211, 179, 0.06);
}

.subpage-bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.subpage-bill-date {
    font-size: 9px;
    color: var(--color-text-secondary);
}

.subpage-bill-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.35;
}

.subpage-bill-author {
    font-size: 9.5px;
    color: var(--color-text-secondary);
}

/* Bill detail panel */
.bill-detail-panel {
    background: rgba(8, 14, 30, 0.45);
    border: 1px dashed rgba(229, 211, 179, 0.25);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    min-height: 200px;
}

.bill-detail-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    height: 100%;
    min-height: 220px;
    text-align: center;
}

.bill-detail-placeholder i {
    font-size: 28px;
    opacity: 0.6;
}

.bill-detail-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bill-detail-content h4 {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}

.bill-meta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.bill-meta-info p {
    margin: 0;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.bill-meta-info p strong {
    color: var(--color-text-primary);
}

.bill-description-text {
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

/* Category Filters for Government Page */
.government-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
}

.btn-filter:hover {
    background: rgba(229, 211, 179, 0.05);
    border-color: rgba(229, 211, 179, 0.25);
    color: var(--color-beige);
}

.btn-filter.active {
    background: rgba(229, 211, 179, 0.12);
    border-color: var(--color-beige);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.15);
}

/* Custom Scrollbar for Ministries List */
#subpage-ministries-list::-webkit-scrollbar {
    width: 4px;
}

#subpage-ministries-list::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 2px;
}

/* Regions Subpage Layout Grid */
.regions-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 24px;
    align-items: start;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar for Indicators List */
#indicators-list::-webkit-scrollbar {
    width: 4px;
}

#indicators-list::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 2px;
}

/* Region Map Widget Hover & Visual Styles */
.regions-map-link:hover {
    border-color: var(--color-beige) !important;
    box-shadow: 0 0 15px rgba(229, 211, 179, 0.4);
    transform: translateY(-2px);
}

.regions-map-link:hover img {
    transform: scale(1.04);
    opacity: 1 !important;
}

.regions-map-link:hover .map-overlay {
    opacity: 1 !important;
}

/* Metrics Selector Row Container inside government comparison cards */
.metrics-selector-row-container {
    display: flex;
    gap: 20px;
    align-items: start;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.metrics-selector-container-inner {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Meme Widget Hover and Visual Effects */
.meme-item-wrapper:hover {
    border-color: var(--color-beige) !important;
    box-shadow: 0 0 15px rgba(229, 211, 179, 0.4) !important;
    transform: translateY(-2px);
}

.meme-item-wrapper:hover img {
    transform: scale(1.03);
    opacity: 1 !important;
}

.meme-item-wrapper:hover .meme-zoom-overlay {
    opacity: 1 !important;
}

/* Meme Archive Page styles */
.memes-heading-link:hover {
    color: var(--color-beige) !important;
}
.memes-heading-link:hover i {
    text-shadow: 0 0 8px var(--color-beige);
}
.memes-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
    width: 100%;
}
@media (max-width: 768px) {
    .memes-grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
}

/* Homepage Comparison Banner styles */
.comparison-banner-card:hover {
    border-color: var(--color-beige) !important;
    box-shadow: 0 0 20px rgba(229, 211, 179, 0.3) !important;
    transform: translateY(-2px);
}
.comparison-banner-card:hover .banner-arrow-btn {
    background: var(--color-beige) !important;
    color: #090a0c !important;
    transform: translateX(4px);
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.5);
}

/* Memes Pagination styles */
.memes-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.btn-pagination {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(229, 211, 179, 0.2);
    color: var(--color-silver);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-pagination:hover:not(:disabled) {
    border-color: var(--color-beige);
    color: var(--color-beige);
    background: rgba(229, 211, 179, 0.1);
}
.btn-pagination.active {
    background: var(--color-beige);
    color: #090a0c;
    border-color: var(--color-beige);
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.4);
}
.btn-pagination:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Governance Cost Scoreboard Panel */
.governance-cost-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Portal Banners Grid Launcher */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   Animated Bar Chart Race Styles (AIC per capita in PPS 1989-2026)
   ========================================================================== */
.bar-chart-race-panel {
    position: relative;
    overflow: hidden;
}

.race-year-watermark {
    position: absolute;
    bottom: 60px;
    right: 25px;
    font-size: 110px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: rgba(229, 211, 179, 0.03);
    pointer-events: none;
    user-select: none;
    z-index: 1;
    line-height: 1;
    text-shadow: 0 0 10px rgba(229, 211, 179, 0.02);
}

.bar-race-arena {
    position: relative;
    width: 100%;
}

.bar-race-eu-line-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(120px + 76.923% * (100% - 120px - 55px));
    width: 2px;
    pointer-events: none;
    z-index: 1;
}
.bar-race-eu-line {
    height: 100%;
    border-left: 1.5px dashed rgba(229, 211, 179, 0.35);
}
.bar-race-eu-label {
    position: absolute;
    top: -18px;
    transform: translateX(-50%);
    font-size: 9px;
    color: rgba(229, 211, 179, 0.45);
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
}

.bar-race-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bar-race-label {
    width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-silver);
    white-space: nowrap;
}

.bar-race-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-race-pm-inline {
    font-size: 10.5px;
    color: rgba(229, 211, 179, 0.6);
    margin-left: 4px;
    font-weight: 400;
}

.bar-race-track-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.bar-race-track {
    flex: 1;
    height: 16px;
    background: rgba(9, 10, 12, 0.35);
    border: 1px solid rgba(229, 211, 179, 0.08);
    border-radius: 8px;
    position: relative;
    overflow: visible;
}

.bar-race-fill {
    height: 100%;
    border-radius: 8px;
    position: relative;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(9, 10, 12, 0.5);
}

/* Gradients for bars */
.bar-sk {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
}
.bar-cz {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}
.bar-pl {
    background: linear-gradient(90deg, #991b1b, #f87171);
}
.bar-hu {
    background: linear-gradient(90deg, #065f46, #34d399);
}
.bar-at {
    background: linear-gradient(90deg, #b45309, #fbbf24);
}
.bar-ro {
    background: linear-gradient(90deg, #4c1d95, #7c3aed);
}
.bar-si {
    background: linear-gradient(90deg, #0d9488, #0ea5e9);
}
.bar-hr {
    background: linear-gradient(90deg, #1e40af, #be123c);
}
.bar-ee {
    background: linear-gradient(90deg, #1e293b, #475569);
}

.bar-race-value {
    width: 45px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-beige);
    text-align: right;
}

.bar-race-pm-container {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(9, 10, 12, 0.95);
    border: 1.5px solid var(--color-beige);
    box-shadow: 0 0 8px rgba(229, 211, 179, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

.bar-race-pm-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.1s ease-in-out;
}

/* Controls styles */
.btn-race-play {
    cursor: pointer;
    background: rgba(229, 211, 179, 0.12) !important;
    border: 1px solid rgba(229, 211, 179, 0.25) !important;
    color: var(--color-beige) !important;
    transition: background 0.2s, transform 0.1s;
}
.btn-race-play:hover {
    background: rgba(229, 211, 179, 0.2) !important;
    transform: translateY(-1px);
}
.btn-race-play:active {
    transform: translateY(0);
}

.race-year-slider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(229, 211, 179, 0.15);
    border: 1px solid rgba(229, 211, 179, 0.1);
    transition: background 0.2s;
}
.race-year-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-beige);
    border: 1.5px solid #090a0c;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(229, 211, 179, 0.5);
    transition: transform 0.1s;
}
.race-year-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.race-year-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-beige);
    border: 1.5px solid #090a0c;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(229, 211, 179, 0.5);
    transition: transform 0.1s;
}
.race-year-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .bar-race-label {
        width: 100px;
        font-size: 11px;
    }
    .bar-race-eu-line-wrapper {
        left: calc(100px + 76.923% * (100% - 100px - 45px));
    }
    .bar-race-value {
        width: 35px;
        font-size: 11px;
    }
    .bar-race-pm-container {
        width: 24px;
        height: 24px;
        right: -10px;
    }
}

/* Styles for Household Debt Chart Race */
.bar-debt-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bar-debt-eu-line-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(120px + 83.333% * (100% - 120px - 55px));
    width: 2px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 600px) {
    .bar-debt-eu-line-wrapper {
        left: calc(100px + 83.333% * (100% - 100px - 45px));
    }
}

/* Styles for Competitiveness Chart Race */
.bar-comp-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bar-comp-eu-line-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(120px + 60.0% * (100% - 120px - 55px));
    width: 2px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 600px) {
    .bar-comp-eu-line-wrapper {
        left: calc(100px + 60.0% * (100% - 100px - 45px));
    }
}

/* Real-time Tickers Grid */
.tickers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1100px) {
    .tickers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Styles for Life Expectancy Chart Race */
.bar-life-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bar-life-eu-line-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(120px + 88.889% * (100% - 120px - 55px));
    width: 2px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 600px) {
    .bar-life-eu-line-wrapper {
        left: calc(100px + 88.889% * (100% - 100px - 45px));
    }
}

/* Styles for Population Chart Race */
.bar-pop-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Slovakia Population Bar Chart in Demographics Card */
.sk-pop-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}
.sk-pop-bar {
    width: 100%;
    max-width: 18px;
    border-radius: 3px 3px 0 0;
    margin-top: auto;
    transition: height 0.3s ease, background 0.3s ease;
    cursor: pointer;
}
.sk-pop-bar:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.4);
}
.sk-pop-year {
    font-size: 9px;
    color: var(--color-silver);
    margin-top: 3px;
    font-family: 'Outfit', sans-serif;
}

/* Styles for Pension Chart Race */
.bar-pension-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bar-pension-eu-line-wrapper {
    position: absolute;
    left: 130px;
    right: 80px;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}
.bar-pension-eu-line-wrapper .bar-race-eu-line {
    position: absolute;
    left: 63.333%;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed rgba(229, 211, 179, 0.4);
}
.bar-pension-eu-line-wrapper .bar-race-eu-label {
    position: absolute;
    left: calc(63.333% + 6px);
    top: 4px;
    font-size: 10px;
    color: var(--color-beige);
    opacity: 0.85;
    white-space: nowrap;
    background: rgba(9, 10, 12, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(229, 211, 179, 0.2);
}

/* Styles for Corruption Chart Race */
.bar-corrupt-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bar-corrupt-eu-line-wrapper {
    position: absolute;
    left: 130px;
    right: 80px;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}
.bar-corrupt-eu-line-wrapper .bar-race-eu-line {
    position: absolute;
    left: 64%;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed rgba(229, 211, 179, 0.4);
}
.bar-corrupt-eu-line-wrapper .bar-race-eu-label {
    position: absolute;
    left: calc(64% + 6px);
    top: 4px;
    font-size: 10px;
    color: var(--color-beige);
    opacity: 0.85;
    white-space: nowrap;
    background: rgba(9, 10, 12, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(229, 211, 179, 0.2);
}

/* Styles for MP Salary Chart Race */
.bar-salary-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bar-salary-eu-line-wrapper {
    position: absolute;
    left: 130px;
    right: 80px;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}
.bar-salary-eu-line-wrapper .bar-race-eu-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed rgba(229, 211, 179, 0.4);
}
.bar-salary-eu-line-wrapper .bar-race-eu-label {
    position: absolute;
    left: calc(50% + 6px);
    top: 4px;
    font-size: 10px;
    color: var(--color-beige);
    opacity: 0.85;
    white-space: nowrap;
    background: rgba(9, 10, 12, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(229, 211, 179, 0.2);
}

/* Russia vs Slovakia Comparison Banner Styles */
.russia-comp-banner {
    position: relative;
    border: 1px solid rgba(229, 211, 179, 0.2) !important;
    background: linear-gradient(135deg, rgba(22, 24, 29, 0.7) 0%, rgba(9, 10, 12, 0.8) 100%) !important;
}
.russia-comp-banner .comp-header h3 {
    text-shadow: 0 0 10px rgba(229, 211, 179, 0.35);
}
.ru-comp-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.ru-comp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 211, 179, 0.08);
    background: rgba(255, 255, 255, 0.05) !important;
}
