.dashboard{background:linear-gradient(to bottom right,#fefefefe,#b6b7b8);color:#fff;padding:10px;display:flex;height:100vh;overflow:hidden}.row{flex:1;display:flex;height:100%;overflow:hidden;width:100%;margin:0;padding:0}body{background:#f5f7fb;font-family:Inter,sans-serif;color:#1111;margin:0;padding:0;height:100%;overflow:hidden}h1,h2,h3,h4,h5,h6{color:#000;font-weight:700}.year-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-bottom:20px}.year-buttons button{padding:10px 24px;font-size:15px;font-weight:500;border:none;border-radius:8px;background:linear-gradient(135deg,#34495e,#1a1918);color:#ecf0f1;cursor:pointer;transition:background-color .3s ease,transform .2s ease;box-shadow:0 2px 5px #0000001a}.year-buttons button:hover{background-color:#34495e;transform:translateY(-2px)}.year-buttons button.active{background:linear-gradient(135deg,#8d5b0a,#f39c12);color:#fff;font-weight:600}.tab-button{transition:all .2s ease}.tab-button:hover{color:#007bff}.tab-button.active{color:#007bff;border-bottom:3px solid #007bff;cursor:default}button:focus{outline:none}.row>.map-container{flex:1 1 50%;min-width:400px;height:100%;overflow:hidden}.col-8.main-container{flex:1 1 50%;max-height:100vh;overflow-y:auto;padding:1rem}.col-12.main-container{max-height:100vh;overflow-y:auto;padding:1rem}.results-bar{display:flex;flex-direction:column;gap:10px;margin:20px 0}.result{padding:10px;text-align:center;font-weight:700;color:#fff;border-radius:5px}.district-details{margin-bottom:20px;padding:10px;background:#333;border-radius:8px}.dashboard.fade-out{opacity:0;transition:opacity .3s ease-in-out}.party-indicator{width:12px;height:12px;border-radius:50%;display:inline-block}.party-abbr{padding:0 6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.winner-icon{position:absolute;top:2px;right:4px;stroke:#fff;background-color:#0003;border-radius:50%}.no-data{text-align:center;font-size:18px;font-weight:700;padding:15px;background-color:#ccc;color:#000;width:100%;border-radius:5px}.map-tooltip{position:absolute;background:#000000d9;color:#fff;font-size:12px;padding:6px 10px;border-radius:4px;pointer-events:none;z-index:999}.vertical-bar-container{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.vertical-bar{height:40px;display:flex;align-items:center;color:#fff;font-weight:700;padding-left:10px;border-radius:5px;transition:width .8s ease-in-out;position:relative}.bar-label{position:absolute;left:10px;z-index:2;font-size:.85rem}.constituency-stats-card{background-color:#f9f9f9;border-radius:12px;padding:20px;box-shadow:0 4px 12px #00000014;margin-bottom:20px}.constituency-stats-card h4{margin-bottom:16px;font-size:1.25rem;color:#333}.constituency-stats-row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px}.constituency-stat{flex:1;min-width:200px;background-color:#fff;border-radius:10px;padding:15px;display:flex;align-items:center;gap:10px;border-left:4px solid #111;box-shadow:0 9px 6px #0000000d;transition:background-color .3s ease-in-out}.constituency-stat:hover{background-color:#f1f5ff}.constituency-stat-icon{font-size:1.5rem;color:#007bff}.constituency-stat-content{display:flex;flex-direction:column}.constituency-stat-label{font-weight:600;font-size:.95rem;color:#555}.constituency-stat-value{font-size:1.25rem;font-weight:700;color:#222}.zoom-reset-button{position:absolute;top:10px;left:10px;background:#000;padding:6px 12px;border-radius:6px;font-size:14px;cursor:pointer;z-index:10;box-shadow:0 1px 4px #0000004d;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background .2s}.zoom-reset-button:hover{background:#000}.zoomed-info-box{transition:opacity .3s ease;opacity:1}.zoomed-info-box.hidden{opacity:0;pointer-events:none}// .regional-cards-grid{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;margin-top:20px}.region-card{width:220px;border-radius:12px;box-shadow:0 2px 6px #00000026;padding:16px;display:flex;flex-direction:column;align-items:center;text-align:center;transition:transform .2s ease}.region-card:hover{transform:translateY(-2px)}.region-card-content{display:flex;flex-direction:column;align-items:center}.profile-icon{width:80px;height:80px;background-color:#fff;border-radius:50%;margin-bottom:12px}.region-name{font-size:14px;margin-bottom:8px}.stats-line{flex-direction:column;gap:4px;display:flex;justify-content:space-between;font-size:13px;color:#555;margin-bottom:6px}.progress-bar{background-color:#e6e6e6;border-radius:8px;height:50px;width:100%;overflow:hidden}.animated-tooltip{animation:fadeInUp .3s ease forwards}@keyframes fadeInUp{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.map-legend{font-family:Quicksand,sans-serif;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.progress-fill{height:100%;border-radius:8px}.map-icon-button{background-color:#fff;border:1px solid #ccc;border-radius:50%;padding:10px;cursor:pointer;box-shadow:0 2px 6px #0003;transition:background-color .2s ease;display:flex;align-items:center;justify-content:center}.map-icon-button:hover{background-color:#f0f0f0}.map-icon-button svg{stroke:#333}.tooltip-content,.back-button{background-color:#333;color:#fff;padding:6px 10px;border-radius:4px;font-size:12px;box-shadow:0 2px 10px #0003;z-index:1000}.tooltip-arrow{fill:#333}.map-icon-button:disabled{opacity:.5;cursor:not-allowed}percentage bar.percentage-bar-wrapper{width:100%;margin:1rem 0}.percentage-bar-track{display:flex;overflow:hidden;border-radius:8px;box-shadow:inset 0 0 4px #00000026}.percentage-bar-segment{display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;position:relative;transition:all .3s ease;cursor:pointer;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.percentage-bar-segment:hover{filter:brightness(1.1)}.party-abbr{z-index:1}.map-loading-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#fffc;display:flex;align-items:center;justify-content:center;z-index:1000}.spinner{border:4px solid #ccc;border-top:4px solid #3498db;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}.winner-icon{position:absolute;top:2px;right:4px;z-index:2}.national-stats-card{background:#f9f9f9;padding:16px;border-radius:8px;margin-bottom:20px;box-shadow:0 0 4px #0000000d;display:flex;flex-direction:column;gap:6px;color:#222;font-size:14px}.national-stats-card .stat strong{font-weight:600}.percentage-bar-track{border-radius:6px;overflow:hidden;display:flex}.percentage-bar-segment{text-align:center;white-space:nowrap}.space{margin-top:100px}.dashboard-content{display:flex;flex-wrap:wrap}.map-container{position:relative;flex:1 1 50%;min-width:400px;height:100%;overflow:hidden;z-index:1}@media (min-width: 768px){.dashboard{height:100vh!important;overflow:hidden!important}.dashboard .row{height:100%!important}.map-container{height:100%!important;flex:1 1 50%!important}.main-container{flex:1 1 50%!important}}.map-icon-button{background:#fff;border:none;border-radius:6px;padding:6px;box-shadow:0 1px 4px #0003}@media (max-width: 600px){.map-icon-button{padding:4px}.map-tooltip{font-size:11px!important;width:200px!important}.map-icon-buttons{top:auto!important;bottom:10px!important;left:50%!important;transform:translate(-50%)!important;flex-direction:row!important}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.countdown-container{display:flex;justify-content:center;gap:1.25rem;margin:2.5rem auto;flex-wrap:wrap}.countdown-card{background:linear-gradient(175deg,#8d5b0a,#102542);border-radius:12px;box-shadow:0 6px 18px #0000001a;width:80px;padding:.75rem 0;text-align:center;cursor:default;transition:transform .2s ease,box-shadow .2s ease}.countdown-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px #00000026}.countdown-number{font-family:Inter,sans-serif;font-size:2rem;font-weight:700;color:#fff}.countdown-label{margin-top:.25rem;font-family:Inter,sans-serif;font-size:.75rem;text-transform:uppercase;color:#ffffffd9;letter-spacing:.05em}.tms{text-align:center;font-size:1.5rem;font-weight:600}.stats-header{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;overflow:hidden}.progress-bar-container{flex:1;margin-top:-20px}.progress-bar-track{position:relative;width:100%;height:24px;background-color:#e0e0e0;border-radius:4px;overflow:hidden}.progress-bar-fill{height:100%;border-radius:4px;transition:width .3s ease}.progress-bar-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.75rem;font-weight:600;color:#fff;white-space:nowrap;pointer-events:none}@media (max-width: 768px){.dashboard .row{flex-direction:column;height:auto}.map-container{position:relative;flex:none;height:clamp(200px,50vh,400px);overflow:hidden;touch-action:pan-y;transition:height .3s ease}.map-container.collapsed{height:0!important;padding:0!important;overflow:hidden!important}.main-container{flex:none;max-height:none;overflow-y:auto;padding:1rem .5rem}.map-toggle-btn{position:fixed;bottom:1rem;right:1rem;z-index:1001;background:#0009;color:#fff;border:none;border-radius:50%;width:48px;height:48px;font-size:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}.map-toggle-btn:hover{background:#000c}.year-buttons{display:none!important}}@media (max-width: 768px){.map-icon-button{width:36px;height:36px;padding:6px;font-size:18px}.map-controls{top:auto!important;bottom:10px!important;flex-direction:row!important;left:50%!important;transform:translate(-50%)!important;gap:6px!important}.map-legend{left:18%!important;transform:translate(-50%)!important;padding:10px!important;font-size:13px!important;min-width:140px!important}}@media (max-width: 768px){.stats-header{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:.5rem!important}.progress-bar-container{width:100%!important;margin-top:.5rem!important}.progress-bar-track{width:100%!important}.progress-bar-text{right:.5rem!important}}.constituency-stats-row{display:flex;gap:1rem;flex-wrap:wrap;justify-content:space-between}.constituency-stat{flex:1;min-width:120px;background:#fff;border:1px solid #eee;border-radius:10px;padding:1rem;text-align:center;box-shadow:0 2px 4px #0000000d}
