        :root {
            --primary: #DD1100;
            --primary-glow: rgba(221, 17, 0, 0.5);
            --bg-dark: #f8fafc;
            --header-height: 70px;
            --ticker-height: 48px;
            --card-bg: #ffffff;
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --text-main: #111827;
            --text-muted: #6b7280;
            --accent: #3b82f6;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        @media (max-width: 768px) {
            :root {
                --header-height: 52px;
                --ticker-height: 32px;
            }
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Outfit', 'Inter', 'Noto Sans Tamil', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        /* Essential fix for FontAwesome being overridden by * selector */
        .fas, .far, .fab, .fa {
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            display: inline-block !important;
            font-style: normal !important;
            font-variant: normal !important;
            text-rendering: auto !important;
            -webkit-font-smoothing: antialiased !important;
        }

        html,
        body,
        #root {
            overflow: hidden !important;
            height: 100vh !important;
            background: #f8fafc;
            color: var(--text-main);
            scroll-behavior: smooth;
        }

        .premium-bg .bg-glow-1 {
            position: fixed;
            top: -10%;
            left: -10%;
            width: 40%;
            height: 40%;
            background: radial-gradient(circle, rgba(221, 17, 0, 0.15) 0%, transparent 70%);
            z-index: -1;
            filter: blur(100px);
            pointer-events: none;
        }

        .admin-blob {
            position: absolute;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(221, 17, 0, 0.08) 0%, transparent 70%);
            z-index: 0;
            filter: blur(80px);
            animation: blobPulse 10s infinite alternate;
        }

        .admin-blob-1 {
            top: -200px;
            left: -200px;
            background: radial-gradient(circle, rgba(221, 17, 0, 0.12) 0%, transparent 70%);
        }

        .admin-blob-2 {
            bottom: -200px;
            right: -200px;
            background: radial-gradient(circle, rgba(20, 20, 20, 0.4) 0%, transparent 70%);
        }

        .admin-blob-3 {
            top: 20%;
            right: -100px;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(221, 17, 0, 0.06) 0%, transparent 70%);
        }

        @keyframes blobPulse {
            from {
                transform: scale(1) translate(0, 0);
            }

            to {
                transform: scale(1.1) translate(20px, 20px);
            }
        }

        .premium-bg .bg-glow-2 {
            position: fixed;
            bottom: -10%;
            right: -10%;
            width: 50%;
            height: 50%;
            background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
            z-index: -1;
            filter: blur(100px);
            pointer-events: none;
        }



        /* SIDEBAR STYLES */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            width: 280px;
            background: #000000;
            /* Main sidebar background solid black */
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            z-index: 2000;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
        }

        .sidebar.hidden {
            transform: translateX(-100%);
        }

        .sidebar-header {
            padding: 40px 25px;
            background: linear-gradient(180deg, #000000 50%, #DD1100 50%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .sidebar-header h2 {
            color: #fff;
            font-size: 20px;
            font-weight: 900;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .sidebar-header p {
            color: #fff;
            /* Brighter white */
            font-size: 13px;
            font-weight: 700;
            /* Bolder */
            margin-top: 4px;
            opacity: 1;
        }

        .sidebar-menu {
            flex: 1;
            overflow-y: auto;
            padding: 15px 0;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            /* Essential for smooth mobile scrolling */
        }

        .sidebar-menu::-webkit-scrollbar {
            width: 4px;
            /* Thinner scrollbar */
        }

        .sidebar-menu::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
        }

        .sidebar-menu::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            /* Subtler */
            border-radius: 10px;
        }

        .sidebar-menu::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
            /* Red on hover */
        }

        .menu-item {
            padding: 10px 18px;
            margin: 4px 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: background 0.2s ease, border-left 0.2s ease;
            border-radius: 8px;
            color: #ffffff !important;
            /* Always bright white */
            font-weight: 600;
            font-size: 14px;
            background: transparent;
            border-left: 3px solid transparent;
            user-select: none;
            /* Prevent text selection flickering */
        }

        .menu-item:hover {
            background: rgba(221, 17, 0, 0.15) !important;
            /* Slightly softer red */
            color: #fff !important;
            /* transform removed to prevent flicker */
            border-left: 3px solid var(--primary);
        }

        .menu-item:active {
            background: rgba(221, 17, 0, 0.4) !important;
            transform: scale(0.98);
            transition: all 0.1s;
        }

        .menu-item .menu-item-text,
        .menu-item .menu-item-icon {
            transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .menu-item:hover .menu-item-text,
        .menu-item:hover .menu-item-icon {
            transform: translateX(6px);
        }

        .menu-item.active {
            background: var(--primary) !important;
            /* Solid red for selected item */
            color: #fff !important;
            box-shadow: 0 4px 15px rgba(221, 17, 0, 0.4);
            font-weight: 800;
            /* transform removed */
        }

        .menu-item.active .menu-item-text,
        .menu-item.active .menu-item-icon {
            transform: translateX(4px);
        }

        .menu-item-icon {
            font-size: 19px;
            display: flex;
            align-items: center;
            justify-content: center;
            /* specific transition redundant if handled above, but keeping for safety if needed */
        }

        .menu-item.active .menu-item-icon {
            filter: none;
        }

        .sidebar-footer {
            padding: 25px;
            background: #DD1100;
            /* Red area for footer as per image */
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* MAIN CONTENT AREA */
        .main-container {
            margin-left: 0;
            height: 100vh !important;
            display: flex;
            flex-direction: column;
            overflow: hidden !important;
            background: var(--bg-dark);
            position: relative;
            transition: margin-left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .main-container.sidebar-open {
            margin-left: 280px;
        }

        .header {
            background: linear-gradient(180deg, #000000 50%, #DD1100 50%);
            padding: 10px 25px;
            display: flex;
            align-items: center;
            gap: 20px;
            border-bottom: 2px solid #000000;
            height: var(--header-height);
            width: 100%;
            z-index: 1000;
        }

        .menu-toggle {
            display: flex;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            width: 42px;
            height: 42px;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            transition: all 0.3s;
        }

        .menu-toggle:hover {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 0 15px var(--primary-glow);
        }

        .header-title h1 {
            color: #fff;
            font-size: 22px;
            font-weight: 900;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .header-title p {
            color: #fff;
            /* Brighter white */
            font-size: 13px;
            font-weight: 700;
            /* Bolder */
            opacity: 1;
        }

        /* CONTENT */
        .content {
            flex: 1 !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: hidden !important;
            /* Allow vertical scrolling */
            padding: 0;
            max-width: 100%;
            width: 100%;
            margin: 0 auto;
            min-height: 0;
            /* Ensures flex child can shrink */
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes pageFadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .voter-list-scroll-area {
            flex: 1 !important;
            overflow-y: auto !important;
            /* Enable vertical scroll */
            display: flex;
            flex-direction: column;
            padding: 20px;
            background: #f8fafc;
            min-height: 0;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        .sticky-toolbar {
            flex-shrink: 0 !important;
            position: sticky;
            top: 0;
            z-index: 100;
            background: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }



        .sticky-toolbar {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: #fff;
            padding: 12px 15px;
            margin: 0;
            border-bottom: 2px solid #DD1100;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .toolbar-row {
            display: flex;
            gap: 10px;
            align-items: center;
            width: 100%;
        }

        .toolbar-row.mb {
            margin-bottom: 8px;
        }

        .toolbar-row>* {
            flex: 1;
        }

        .toolbar-row>button,
        .toolbar-row>.btn {
            flex: 0 0 auto;
        }

        @media (max-width: 768px) {
            .sticky-toolbar {
                /* Sticks below header/ticker on mobile */
                z-index: 1100;
            }
        }

        .main-container .header {
            flex-shrink: 0;
        }

        /* CARDS */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .card {
            background: var(--card-bg);
            padding: 30px;
            border-radius: 24px;
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(20px);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: var(--card-shadow);
        }

        .card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: var(--primary);
            box-shadow: 0 20px 40px -15px rgba(221, 17, 0, 0.2);
            background: rgba(30, 41, 59, 0.9);
        }

        .btn {
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none;
            outline: none;
        }

        .btn-primary {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 8px 20px -6px var(--primary-glow);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            filter: brightness(1.1);
            box-shadow: 0 12px 25px -5px var(--primary-glow);
        }

        .btn-secondary {
            background: var(--glass-bg);
            color: #fff;
            border: 1px solid var(--glass-border);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Analytics Customizations */
        .analytics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 25px;
            padding: 25px;
        }

        .stat-card {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
            border-radius: 24px;
            padding: 25px;
            border: 1px solid var(--glass-border);
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .stat-value {
            font-size: 32px;
            font-weight: 900;
            color: #fff;
            letter-spacing: -1px;
        }

        .stat-label {
            font-size: 13px;
            font-weight: 800;
            /* Bolder */
            color: #fff;
            /* Brighter */
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.9;
        }

        /* Select & Input Styling */
        .premium-select,
        .premium-input {
            height: 50px;
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            padding: 0 15px;
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
            width: 100%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center;
            background-size: 16px;
            cursor: pointer;
            line-height: normal;
            display: flex;
            align-items: center;
        }

        /* Select specifics since flex doesn't work inside select text */
        select.premium-select {
            padding-right: 40px;
            display: block;
            /* selects are blocks */
        }

        .premium-select:focus,
        .premium-input:focus {
            outline: none;
            border-color: #DD1100;
            box-shadow: 0 0 0 4px rgba(221, 17, 0, 0.1);
            background-color: #fff;
        }

        .premium-select:disabled {
            background-color: #f8fafc;
            cursor: not-allowed;
            opacity: 0.7;
        }

        .card {
            border-left: 6px solid #DD1100;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(221, 17, 0, 0.1);
            border-color: #DD1100;
        }

        .card-text h3 {
            color: #111827;
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .card-text p {
            color: #6b7280;
            font-size: 14px;
        }

        .card-arrow {
            color: #DD1100;
            font-size: 24px;
            font-weight: bold;
            margin-left: auto;
        }

        /* MOBILE OVERLAY */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 999;
        }

        .sidebar-overlay.active {
            display: block;
        }

        /* RESPONSIVE */
        .desktop-only {
            display: block !important;
        }

        .mobile-only {
            display: none !important;
        }

        .desktop-only-table {
            display: block !important;
            width: 100% !important;
            margin: 0 !important;
        }

        /* NEWS TICKER STYLES */
        .news-ticker {
            background: linear-gradient(90deg, #fccb05 0%, #f5b800 100%);
            overflow: hidden;
            position: sticky;
            top: var(--header-height);
            z-index: 1100;
            border-bottom: 2px solid #DD1100;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            height: var(--ticker-height);
            display: flex;
            align-items: center;
        }

        .news-label {
            background: #DD1100;
            color: white;
            padding: 0 15px;
            height: 100%;
            display: flex;
            align-items: center;
            font-weight: 800;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 2;
            box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
            white-space: nowrap;
        }

        .news-track {
            display: inline-block;
            white-space: nowrap;
            animation: scroll-ticker 40s linear infinite;
            font-size: 16px;
            font-weight: bold;
            color: #000;
            padding-left: 20px;
            flex-grow: 1;
        }

        @keyframes scroll-ticker {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-100%);
            }
        }

        /* PREMIUM ACHIEVEMENTS TICKER STYLES - FULLY RESPONSIVE */
        .achievements-ticker-container {
            background: #0f172a;
            padding: clamp(15px, 2.5vh, 36px) 0;
            overflow: hidden;
            border-bottom: 2px solid rgba(221, 17, 0, 0.5);
            position: relative;
            z-index: 5;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            width: 100%;
        }

        .ticker-label {
            background: linear-gradient(135deg, #DD1100, #990c00);
            color: #fff;
            padding: clamp(10px, 1.5vw, 24px) clamp(15px, 2.5vw, 35px);
            font-weight: 900;
            font-size: clamp(13px, 1.2vw, 20px);
            white-space: nowrap;
            z-index: 10;
            box-shadow: 10px 0 25px rgba(0, 0, 0, 0.4);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            border-right: 3px solid rgba(255, 255, 255, 0.1);
        }

        .achievements-ticker-track {
            display: flex;
            white-space: nowrap;
            animation: scroll-achievements 1200s linear infinite;
            will-change: transform;
        }

        .achievement-ticker-item {
            display: inline-flex !important;
            align-items: center;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(12px);
            border-radius: clamp(12px, 1.5vw, 24px);
            padding: clamp(12px, 1.8vw, 24px) clamp(15px, 2.2vw, 30px);
            margin-left: clamp(15px, 2vw, 30px);
            min-width: clamp(250px, 30vw, 450px);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .achievement-ticker-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: #DD1100;
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 30px rgba(221, 17, 0, 0.15);
        }

        .achievement-ticker-item img {
            width: clamp(60px, 8vw, 120px);
            height: clamp(45px, 6vw, 90px);
            border-radius: 12px;
            object-fit: cover;
            margin-right: clamp(12px, 1.5vw, 20px);
            border: 2px solid #DD1100;
            box-shadow: 0 4px 15px rgba(221, 17, 0, 0.3);
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .achievement-ticker-item:hover img {
            transform: scale(1.05);
        }

        .achievement-ticker-content {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            text-align: left;
        }

        .achievement-ticker-title {
            font-weight: 900;
            /* Bolder */
            font-size: clamp(12px, 1.2vw, 16px);
            color: #ffffff;
            /* Brighter */
            white-space: normal;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .achievement-ticker-desc {
            font-size: clamp(10px, 1vw, 13px);
            color: #ffffff;
            /* Brighter */
            font-weight: 700;
            /* Bolder */
            white-space: normal;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
            opacity: 0.9;
        }

        /* Achievement Detail Modal */
        .achievement-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .achievement-modal-content {
            background: #0f172a;
            width: 100%;
            max-width: 600px;
            border-radius: 30px;
            border: 1px solid rgba(221, 17, 0, 0.3);
            overflow: hidden;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        .achievement-modal-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
            border-bottom: 4px solid #DD1100;
        }

        .achievement-modal-body {
            padding: 30px;
        }

        .achievement-modal-title {
            font-size: 24px;
            font-weight: 800;
            color: #fff;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .achievement-modal-year {
            display: inline-block;
            background: #DD1100;
            color: #fff;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 800;
            margin-bottom: 20px;
        }

        .achievement-modal-desc {
            font-size: 16px;
            color: #cbd5e1;
            line-height: 1.6;
        }

        .achievement-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            z-index: 10;
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(5px);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes scroll-achievements {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        /* Responsive scaling adjustments for small phones */
        @media (max-width: 480px) {
            .achievements-ticker-container {
                padding: 10px 0;
            }

            .ticker-label {
                padding: 8px 12px;
                font-size: 11px;
            }

            .achievement-ticker-item {
                min-width: 260px;
                margin-left: 12px;
                padding: 10px 15px;
            }

            .achievement-ticker-item img {
                width: 40px;
                height: 40px;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                width: 280px;
            }

            .main-container {
                margin-left: 0;
            }

            /* MOBILE HEADER OPTIMIZATION - AGGRESSIVE */
            .main-container.sidebar-open {
                margin-left: 0;
                /* Don't push content on mobile, use overlay instead */
            }

            .header {
                padding: 6px 10px !important;
            }

            .header-title h1 {
                font-size: 13px !important;
                line-height: 1.2 !important;
            }

            .header-title p {
                display: none !important;
                /* Hide subtitle to save space */
            }

            /* MOBILE TICKER OPTIMIZATION */
            .news-ticker {
                padding: 6px 0 !important;
                height: var(--ticker-height) !important;
                font-size: 13px !important;
                line-height: 23px !important;
                box-shadow: none !important;
                /* Remove individual shadow on mobile */
                border-bottom: 2px solid #DD1100;
            }

            /* MOBILE CONTENT OPTIMIZATION */
            .content {
                padding: 0 6px 20px 6px !important;
            }

            .sticky-toolbar {
                padding: 8px !important;
                margin-bottom: 0 !important;
            }

            .toolbar-row {
                gap: 5px !important;
            }

            .sticky-toolbar h2 {
                font-size: 15px !important;
                line-height: 1.2 !important;
            }

            /* MOBILE STATISTICS CARDS - VERY COMPACT */
            .voter-stats-grid {
                gap: 6px !important;
            }

            .voter-stats-grid>div {
                padding: 6px !important;
            }

            .voter-stats-grid>div>div:first-child {
                font-size: 8px !important;
                margin-bottom: 2px !important;
            }

            .voter-stats-grid>div>div:last-child {
                font-size: 16px !important;
            }

            /* MOBILE TABS - COMPACT */
            .tabs-container {
                margin-bottom: 6px !important;
                padding: 3px !important;
            }

            .tab-button {
                padding: 6px 10px !important;
                font-size: 10px !important;
            }

            .search-filter-bar {
                margin-bottom: 0 !important;
                display: flex !important;
                flex-direction: row !important;
                /* Keep horizontal row if we use toolbar-row classes */
                flex-wrap: wrap;
                gap: 8px !important;
            }

            .search-filter-bar input,
            .search-filter-bar select {
                padding: 6px 10px !important;
                font-size: 12px !important;
                height: 36px !important;
                flex: 1 1 auto !important;
                width: auto !important;
                min-width: 100px !important;
            }

            /* MOBILE BUTTONS - COMPACT */
            .btn {
                padding: 6px 12px !important;
                font-size: 11px !important;
            }

            .btn-primary {
                padding: 6px 12px !important;
                font-size: 11px !important;
            }

            .desktop-only {
                display: none !important;
            }

            .mobile-only {
                display: block !important;
            }

            .desktop-only-table {
                display: none !important;
            }
        }

        /* BUTTON STYLES (Professional System) */
        .btn {
            padding: 12px 24px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            letter-spacing: 0.3px;
        }

        .btn-primary {
            background: #DD1100;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(221, 17, 0, 0.25);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            background: #c20f00;
            box-shadow: 0 6px 15px rgba(221, 17, 0, 0.35);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        .btn-secondary:hover {
            background: #e2e8f0;
            color: #1e293b;
        }

        /* LOGIN SCREEN - PROFESSIONAL WEB & MOBILE */
        .login-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            padding: 0;
            background: #000;
            position: relative;
            overflow: hidden;
        }

        /* Blurred background effect for Desktop sides */
        .login-container::before {
            content: '';
            position: absolute;
            top: -5%;
            left: -5%;
            right: -5%;
            bottom: -5%;
            background: url('assets/login_bg.png') no-repeat center center;
            background-size: cover;
            filter: blur(40px) brightness(0.4);
            z-index: 1;
        }

        /* Central mobile-style container */
        .login-container .login-content-wrapper {
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            background: url('assets/login_bg.png') no-repeat center top;
            background-size: cover;
            max-width: 100%;
        }

        @media (min-width: 769px) {
            .login-container .login-content-wrapper {
                max-width: 450px;
                height: 95vh;
                border-radius: 40px;
                background-size: contain;
                /* Changed to contain to show full width of image */
                background-color: #fccb05;
                /* Use the image's yellow as padding color */
                box-shadow: 0 0 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(221, 17, 0, 0.2);
                margin-top: 2.5vh;
            }
        }

        .login-panel-bottom {
            width: 90%;
            max-width: 420px;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 50%, rgba(221, 17, 0, 0.9) 50%);
            backdrop-filter: blur(15px);
            padding: 12px 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 100;
            margin-bottom: 25px;
            /* Restored to safe distance */
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        }

        .login-input-wrapper {
            flex: 1;
            position: relative;
        }

        .login-panel-bottom input {
            width: 100%;
            background: rgba(255, 255, 255, 0.1) !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            color: #fff !important;
            padding: 12px 10px !important;
            border-radius: 8px !important;
            font-size: 13px !important;
            height: 45px !important;
            outline: none;
        }

        .login-panel-bottom input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .login-arrow-btn {
            width: 45px;
            height: 45px;
            background: #DD1100;
            color: #fff;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(221, 17, 0, 0.3);
            flex-shrink: 0;
            transition: transform 0.2s;
        }



        .form-group label {
            color: #4b5563;
            /* Darker color for visibility on light backgrounds */
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
        }

        .form-group input {
            width: 100%;
            padding: 14px;
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 12px;
            color: #111827;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .form-group input:focus {
            outline: none;
            border-color: #DD1100;
            box-shadow: 0 0 0 4px rgba(221, 17, 0, 0.1);
        }

        .demo-info {
            margin-top: 30px;
            padding: 15px;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            font-size: 13px;
            color: #6b7280;
        }

        .demo-info strong {
            color: #DD1100;
        }

        /* ANIMATIONS */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            animation: fadeIn 0.3s ease-out;
        }

        /* FUNCTIONARIES FORM STYLES */
        .premium-card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(0, 0, 0, 0.05);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .premium-card:hover {
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
        }

        .premium-table-container {
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid #eef2f6;
            background: #fff;
            max-height: 500px;
            overflow-y: auto;
            position: relative;
        }

        .premium-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .premium-table thead {
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .premium-table th {
            background: #f1f5f9;
            color: #475569;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: 0.05em;
            padding: 16px 20px;
            border-bottom: 2px solid #e2e8f0;
            text-align: left;
            position: relative;
        }

        .premium-table td {
            padding: 18px 20px;
            font-size: 14px;
            color: #334155;
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.2s;
        }

        .premium-table tr:hover td {
            background: #f8fafc;
        }

        .premium-form-group {
            position: relative;
            margin-bottom: 15px;
        }

        .premium-form-group label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 800;
            color: #64748b;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .premium-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .premium-input-icon {
            position: absolute;
            left: 14px;
            font-size: 14px;
            color: #94a3b8;
            pointer-events: none;
            transition: color 0.3s;
        }

        .premium-form-group:focus-within .premium-input-icon {
            color: #DD1100;
        }

        .premium-input-field,
        .premium-select-field {
            width: 100%;
            height: 48px;
            background: #f8fafc;
            border: 2px solid #f1f5f9;
            border-radius: 14px;
            padding: 0 15px 0 42px;
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
            transition: all 0.3s;
        }

        .premium-input-field:focus,
        .premium-select-field:focus {
            outline: none;
            background: #fff;
            border-color: #DD1100;
            box-shadow: 0 0 0 4px rgba(221, 17, 0, 0.1);
        }

        .premium-select-field {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3Csvg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center;
            background-size: 14px;
        }

        .booth-badge {
            background: #000;
            color: #fff;
            padding: 4px 12px;
            border-radius: 8px;
            font-weight: 900;
            font-size: 12px;
            letter-spacing: 1px;
        }

        .action-btn-circle {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }

        .action-btn-edit {
            background: #f1f5f9;
            color: #475569;
        }

        .action-btn-edit:hover {
            background: #000;
            color: #fff;
        }

        .action-btn-delete {
            background: #fef2f2;
            color: #ef4444;
        }

        .action-btn-delete:hover {
            background: #ef4444;
            color: #fff;
        }

        .form-container {
            background: #ffffff;
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        .photo-upload-section {
            text-align: center;
            margin-bottom: 30px;
        }

        .photo-preview {
            width: 130px;
            height: 165px;
            border-radius: 15px;
            border: 4px solid #DD1100;
            margin: 0 auto 15px;
            overflow: hidden;
            background: #f3f4f6;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            box-shadow: 0 8px 16px rgba(221, 17, 0, 0.1);
        }

        .photo-preview:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(221, 17, 0, 0.5);
        }

        .photo-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-placeholder {
            font-size: 48px;
            color: #666;
        }

        .photo-upload-btn {
            display: inline-block;
            padding: 10px 20px;
            background: #DD1100;
            color: #000;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .photo-upload-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(221, 17, 0, 0.4);
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .form-group select,
        .form-group textarea,
        .form-group input {
            width: 100%;
            padding: 14px;
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 12px;
            color: #111827;
            font-size: 16px;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }

        /* NEW PREMIUM SELECT STYLES */
        .premium-select {
            padding: 10px 15px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            background-color: #ffffff;
            color: #1a202c;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23DD1100' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 16px;
            padding-right: 40px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            min-width: 140px;
        }

        .premium-select:hover {
            border-color: #DD1100;
            box-shadow: 0 4px 10px rgba(221, 17, 0, 0.1);
            transform: translateY(-1px);
        }

        .premium-select:focus {
            outline: none;
            border-color: #DD1100;
            box-shadow: 0 0 0 4px rgba(221, 17, 0, 0.15);
        }

        .premium-select option {
            font-weight: 600;
            padding: 10px;
            background: #fff;
            color: #1a202c;
        }

        .premium-select option:checked {
            background-color: #DD1100;
            color: #fff;
        }

        /* Bold Booth Number Option Style */
        .booth-opt {
            font-weight: 900 !important;
            font-size: 16px !important;
            color: #DD1100 !important;
        }

        .form-group select:focus,
        .form-group textarea:focus,
        .form-group input:focus {
            outline: none;
            border-color: #DD1100;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(221, 17, 0, 0.1);
        }

        .form-group select {
            max-width: 100%;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center;
            padding-right: 40px;
        }

        .form-actions {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            margin-top: 30px;
        }

        /* FUNCTIONARY CARDS */
        .functionaries-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        @media (max-width: 768px) {
            .functionaries-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                margin-top: 10px;
                /* Pull grid slightly to reduce side gaps if needed */
                margin-left: -10px;
                margin-right: -10px;
                padding: 0 5px;
            }

            .functionary-card {
                border-radius: 15px;
                padding: 15px;
                min-height: auto;
            }
        }

        /* NEWS CARDS - COMPACT & PROFESSIONAL */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .news-card {
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .news-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
            border-color: #cbd5e1;
        }

        .news-media-container {
            position: relative;
            width: 100%;
            height: 180px;
            background: #f1f5f9;
            overflow: hidden;
        }

        .news-media-container img,
        .news-media-container video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .news-card:hover .news-media-container img {
            transform: scale(1.05);
        }

        .news-body {
            padding: 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .news-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .news-tag {
            font-size: 10px;
            font-weight: 800;
            padding: 3px 10px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .news-title-text {
            font-size: 16px;
            font-weight: 800;
            color: #0f172a;
            line-height: 1.4;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-excerpt {
            font-size: 13px;
            color: #475569;
            line-height: 1.6;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
            color: #94a3b8;
            font-weight: 600;
            margin-top: auto;
            padding-top: 10px;
            border-top: 1px solid #f1f5f9;
        }

        @media (max-width: 768px) {
            .news-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                padding: 0 10px;
            }

            .news-media-container {
                height: 160px;
            }
        }

        /* ACHIEVEMENT CARDS - COMPACT & MODERN */
        .achievements-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        @media (max-width: 768px) {
            .achievements-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                margin-top: 10px;
                padding: 0 5px;
            }
        }

        .achievement-card {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid #e5e7eb;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            height: 100%;
        }

        .achievement-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
            border-color: #DD1100;
        }

        .achievement-image-wrapper {
            position: relative;
            height: 150px;
            overflow: hidden;
            background: #f3f4f6;
        }

        @media (max-width: 768px) {
            .achievement-image-wrapper {
                height: 110px;
            }
        }

        .achievement-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .achievement-card:hover .achievement-image-wrapper img {
            transform: scale(1.08);
        }

        .achievement-year-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(4px);
            color: #fff;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 800;
            z-index: 2;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .achievement-body {
            padding: 12px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .achievement-category {
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: #DD1100;
        }

        .achievement-title {
            font-size: 15px;
            font-weight: 800;
            color: #111827;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 2px;
        }

        .achievement-desc {
            font-size: 12px;
            color: #4b5563;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }

        .achievement-actions-compact {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            padding: 10px;
            background: #f9fafb;
            border-top: 1px solid #f3f4f6;
        }

        .btn-ach-action {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 6px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 10px;
            font-weight: 800;
            background: #fff;
            color: #4b5563;
            border: 1px solid #e5e7eb;
        }

        .btn-ach-action:hover {
            background: #f3f4f6;
            transform: translateY(-2px);
        }

        .btn-ach-action.active {
            background: #ecfdf5;
            color: #10b981;
            border-color: #10b981;
        }

        .functionary-card {
            background: #ffffff;
            border-radius: 12px;
            padding: 0 12px;
            /* Add padding to accommodate the red bars */
            border: 1px solid #e5e7eb;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
            width: 100%;
            overflow: hidden;
            position: relative;
        }

        /* Red Side Pill Bars */
        .functionary-card::before,
        .functionary-card::after {
            content: '';
            position: absolute;
            top: 50%;
            height: 25mm;
            width: 8px;
            background: #DD1100;
            border-radius: 20px;
            transform: translateY(-50%);
            z-index: 1;
        }

        .functionary-card::before {
            left: 0;
        }

        .functionary-card::after {
            right: 0;
        }

        .card-banner {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #f8fafc;
            padding: 8px 0;
            /* Horizontal padding handled by card-main padding */
            border-bottom: 1px solid #f1f5f9;
        }

        .card-banner-logo {
            width: 22px;
            height: 22px;
            object-fit: contain;
        }

        .card-banner-title {
            font-size: 11px;
            font-weight: 800;
            color: #DD1100;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            flex-direction: column;
            line-height: 1.3;
            opacity: 0.9;
        }

        .card-banner-title .wing-name {
            color: #475569;
            font-size: 10px;
            margin-bottom: 2px;
        }

        .card-banner-title .position-name {
            color: #DD1100;
        }

        .card-main {
            display: flex;
            padding: 12px;
            gap: 12px;
            align-items: flex-start;
            flex: 1;
        }

        .card-photo-sidebar {
            width: 80px;
            height: 100px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            overflow: hidden;
            flex-shrink: 0;
            background: #f1f5f9;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .card-photo-sidebar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card-info-modern {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .card-info-modern h3 {
            font-size: 15px;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 4px;
            line-height: 1.2;
        }

        .card-info-row {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #64748b;
        }

        .card-info-row .icon {
            font-size: 13px;
            opacity: 0.7;
            width: 15px;
            text-align: center;
        }

        .card-info-row .value {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-social-pill {
            display: flex;
            gap: 8px;
            padding: 6px 12px;
            border-top: 1px solid #f1f5f9;
        }

        .social-dot {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.2s;
            border: 1px solid #e2e8f0;
            padding: 4px;
            overflow: hidden;
        }

        .social-dot img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .social-dot:hover {
            transform: scale(1.15);
            border-color: #DD1100;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .social-dot.disabled {
            opacity: 0.2;
            filter: grayscale(1);
            pointer-events: none;
        }

        .card-actions-strip {
            display: flex;
            gap: 1px;
            border-top: 1px solid #f1f5f9;
            background: #f1f5f9;
            margin: 0 -12px;
            /* Negate card padding for full-width action bar */
        }

        .card-actions-strip button {
            flex: 1;
            height: 36px;
            background: #fff;
            border: none;
            font-size: 11px;
            font-weight: 700;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .card-actions-strip button:hover {
            background: #f8fafc;
            color: #DD1100;
        }

        .card-actions-strip .btn-delete-mini:hover {
            color: #e11d48;
            background: #fff1f2;
        }

        .functionary-card:hover {
            transform: translateY(-8px);
            border-color: #DD1100;
            box-shadow: 0 15px 30px rgba(221, 17, 0, 0.1);
        }

        .card-header-func {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        .card-photo {
            width: 100px;
            height: 125px;
            border-radius: 12px;
            border: 2px solid #DD1100;
            overflow: hidden;
            flex-shrink: 0;
            background: #f3f4f6;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .card-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
            overflow: hidden;
        }

        .card-info h3 {
            color: #111827;
            font-size: 20px;
            font-weight: 800;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-info .designation {
            color: #DD1100;
            font-size: 15px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-details {
            display: grid;
            gap: 12px;
            margin: 20px 0;
            font-size: 14px;
            min-height: 120px;
            /* Uniform height */
        }

        .card-details div {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .card-details .icon {
            font-size: 16px;
            opacity: 0.8;
        }

        .card-details .value {
            color: #374151;
            line-height: 1.4;
        }

        .card-social {
            display: flex;
            gap: 15px;
            margin: 15px 0;
            padding-top: 15px;
            border-top: 1px dashed #e5e7eb;
            min-height: 45px;
        }

        .social-icon {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: #f9fafb;
            color: #6b7280;
            text-decoration: none;
            transition: all 0.2s;
            font-size: 14px;
        }

        .social-icon:hover {
            transform: scale(1.1);
            background: #DD1100;
            color: #fff;
        }

        .card-actions {
            display: flex;
            gap: 10px;
            margin-top: auto;
            padding-top: 15px;
            border-top: 1px solid #f3f4f6;
            width: 100%;
        }

        .card-actions button {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 40px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            white-space: nowrap;
        }

        .btn-edit {
            background: #eff6ff;
            color: #2563eb;
            border: 1px solid #dbeafe;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(37, 99, 235, 0.05);
        }

        .btn-edit:hover {
            background: #2563eb;
            color: #fff !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
            border-color: #2563eb;
        }

        .btn-delete {
            background: #fff1f2;
            color: #e11d48;
            border: 1px solid #ffe4e6;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(225, 29, 72, 0.05);
        }

        .btn-delete:hover {
            background: #e11d48;
            color: #fff !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
            border-color: #e11d48;
        }

        .btn-delete:hover {
            background: #e11d48;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
        }

        .btn-download {
            background: #f0fdf4;
            color: #15803d;
        }

        .btn-download:hover {
            background: #15803d;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
        }

        /* TABS STYLES */
        .tabs-header {
            display: flex;
            gap: 20px;
            border-bottom: 2px solid #f1f5f9;
            margin-bottom: 20px;
            padding: 0 5px;
        }

        .tab-item {
            padding: 12px 5px;
            font-size: 14px;
            font-weight: 700;
            color: #64748b;
            cursor: pointer;
            position: relative;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .tab-item:hover {
            color: #DD1100;
        }

        .tab-item.active {
            color: #DD1100;
        }

        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 3px;
            background: #DD1100;
            border-radius: 10px 10px 0 0;
        }

        /* DATA MANAGEMENT STYLES */
        .data-mgmt-container {
            background: #fff;
            border-radius: 20px;
            padding: 30px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        .data-card {
            background: #f8fafc;
            border-radius: 16px;
            padding: 24px;
            border: 1px solid #e2e8f0;
            margin-bottom: 20px;
        }

        .data-card h3 {
            font-size: 18px;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .import-actions {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .progress-container {
            margin-top: 20px;
            padding: 15px;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .progress-bar-bg {
            height: 8px;
            background: #f1f5f9;
            border-radius: 4px;
            overflow: hidden;
            margin: 10px 0;
        }

        .progress-bar-fill {
            height: 100%;
            background: #DD1100;
            transition: width 0.3s ease;
        }

        .progress-text {
            font-size: 13px;
            color: #64748b;
            font-weight: 600;
            text-align: center;
        }


        /* MODAL */
        .modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            padding: 20px;
        }

        .modal-content {
            background: #ffffff;
            border-radius: 24px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
            border: 1px solid #e5e7eb;
        }

        .modal-header {
            padding: 25px 30px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            background: #ffffff;
            z-index: 10;
        }

        .modal-header h2 {
            color: #DD1100;
            font-size: 24px;
        }

        .modal-close {
            background: #f3f4f6;
            border: none;
            color: #4b5563;
            font-size: 28px;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        /* ID CARD STYLES */
        /* PREMIUM ID CARD V2 STYLES */
        .id-card-dual-wrapper {
            display: flex;
            gap: 20px;
            padding: 20px;
            background: #fff;
            justify-content: center;
            align-items: flex-start;
            flex-wrap: wrap;
            width: fit-content;
            margin: 0 auto;
        }

        .id-card-side {
            width: 350px;
            height: 580px;
            background: #fff;
            border-radius: 25px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
            font-family: 'Mukta Malar', 'Noto Sans Tamil', sans-serif;
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
        }

        /* Front Side Specifics */
        .id-front-header {
            height: 180px;
            background: linear-gradient(to bottom, #000 0%, #000 20%, #DD1100 100%);
            position: relative;
            display: flex;
            justify-content: space-around;
            align-items: flex-start;
            padding-top: 15px;
        }

        .leader-portrait {
            width: 80px;
            height: 100px;
            object-fit: contain;
            filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
        }

        .leader-portrait.center {
            width: 90px;
            height: 110px;
            z-index: 2;
        }

        .profile-photo-container {
            position: absolute;
            top: 110px;
            left: 50%;
            transform: translateX(-50%);
            width: 125px;
            height: 150px;
            background: #fff;
            border-radius: 20px;
            padding: 5px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            z-index: 5;
        }

        .profile-photo-container img {
            width: 100%;
            height: 100%;
            border-radius: 15px;
            object-fit: cover;
        }

        .id-front-content {
            margin-top: 90px;
            text-align: center;
            padding: 0 20px;
            flex: 1;
        }

        .id-front-name {
            font-size: 24px;
            font-weight: 800;
            color: #DD1100;
            margin-bottom: 5px;
            font-family: 'Mukta Malar', sans-serif;
        }

        .id-front-role-badge {
            display: inline-block;
            background: #DD1100;
            color: #fff;
            padding: 6px 20px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .id-front-number {
            font-size: 16px;
            font-weight: 800;
            color: #166534;
            letter-spacing: 0.5px;
            margin-bottom: 15px;
        }

        .id-front-info-box {
            display: flex;
            background: #f8fafc;
            border-radius: 15px;
            margin: 10px 10px 0;
            padding: 10px;
            align-items: center;
            gap: 15px;
            text-align: left;
            border: 1px solid #e2e8f0;
        }

        .info-box-icon {
            width: 35px;
            height: 35px;
            background: #fee2e2;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .info-box-text {
            display: flex;
            flex-direction: column;
        }

        .info-box-label {
            font-size: 10px;
            color: #64748b;
            font-weight: 700;
            text-transform: uppercase;
        }

        .info-box-value {
            font-size: 14px;
            font-weight: 800;
            color: #1e293b;
        }

        .id-front-footer {
            background: #DD1100;
            color: #fff;
            padding: 10px;
            text-align: center;
            font-size: 14px;
            font-weight: 800;
            margin-top: 15px;
        }

        /* Back Side Specifics */
        .id-back-header {
            background: #DD1100;
            color: #fff;
            padding: 15px;
            text-align: center;
            font-size: 20px;
            font-weight: 800;
            letter-spacing: 1px;
        }

        .id-back-content {
            padding: 20px;
            flex: 1;
        }

        .id-detail-item {
            margin-bottom: 15px;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 8px;
        }

        .id-detail-label {
            font-size: 12px;
            color: #ef4444;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .id-detail-value {
            font-size: 14px;
            color: #1e293b;
            font-weight: 800;
            line-height: 1.4;
        }

        .id-back-footer {
            padding: 20px;
            background: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            border-top: 1px solid #eee;
        }

        .qr-section {
            display: flex;
            gap: 30px;
            justify-content: center;
            margin-bottom: 10px;
        }

        .qr-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .qr-placeholder {
            width: 70px;
            height: 70px;
            background: #fff;
            border: 1px solid #e2e8f0;
            padding: 5px;
        }

        .qr-label {
            font-size: 10px;
            font-weight: 800;
            color: #94a3b8;
        }

        .issuer-section {
            text-align: center;
        }

        .issuer-label {
            font-size: 11px;
            color: #ef4444;
            font-weight: 800;
            margin-bottom: 2px;
        }

        .issuer-name {
            font-size: 16px;
            font-weight: 900;
            color: #1e293b;
        }

        .disclaimer {
            font-size: 10px;
            color: #94a3b8;
            max-width: 280px;
            text-align: center;
            line-height: 1.4;
        }

        .id-back-bottom-text {
            font-size: 10px;
            color: #94a3b8;
            margin-top: 5px;
            font-style: italic;
        }

        .btn-id-download {
            background: #DD1100;
            color: #fff;
            border: none;
            padding: 12px 30px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s;
        }

        .btn-id-download:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(221, 17, 0, 0.2);
        }

        .modal-body {
            padding: 20px;
        }

        /* SEARCH AND FILTER */
        .search-filter-bar {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .search-filter-bar input,
        .search-filter-bar select {
            padding: 14px 20px;
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 12px;
            color: #111827;
            font-size: 16px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        .search-filter-bar input:focus,
        .search-filter-bar select:focus {
            outline: none;
            border-color: #DD1100;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(221, 17, 0, 0.1);
        }

        .search-filter-bar input {
            flex: 1;
            min-width: 250px;
        }

        .search-filter-bar select {
            min-width: 150px;
        }

        /* PREMIUM VOTE STATS BAR */
        .voter-stats-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            background: #fff;
            padding: 8px 12px;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            flex-wrap: nowrap;
            overflow: visible;
            /* Fix absolute dropdown clipping */
        }

        .premium-red-select {
            background: #DD1100 !important;
            color: #fff !important;
            border: none !important;
            font-weight: 800 !important;
            border-radius: 10px !important;
            padding: 8px 12px !important;
            cursor: pointer;
            font-size: 14px !important;
            outline: none;
            transition: all 0.2s;
            height: 40px;
        }

        .premium-red-select:hover {
            box-shadow: 0 4px 12px rgba(221, 17, 0, 0.2);
            transform: translateY(-1px);
        }

        .search-box-v2 {
            position: relative;
            flex: 1;
            min-width: 180px;
            max-width: 260px;
        }

        .search-box-v2 input {
            width: 100%;
            padding: 10px 10px 10px 38px !important;
            border-radius: 10px !important;
            border: 1px solid #cbd5e1 !important;
            background: #f8fafc !important;
            font-size: 14px !important;
            margin-bottom: 0 !important;
            height: 40px;
        }

        /* CUSTOM BOOTH DROPDOWN */
        .booth-dropdown-v2 {
            position: absolute;
            top: 100%;
            left: 0;
            width: 350px;
            max-height: 220px;
            /* Shows ~4 items with scroll */
            overflow-y: auto;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            z-index: 2000;
            margin-top: 5px;
            padding: 5px;
        }

        .booth-item-v2 {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 1px solid #f1f5f9;
            border-radius: 8px;
        }

        .booth-item-v2:last-child {
            border-bottom: none;
        }

        .booth-item-v2:hover {
            background: #fff1f2;
        }

        .booth-num-badge {
            background: #DD1100;
            color: #fff;
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: 800;
            font-size: 13px;
            min-width: 42px;
            text-align: center;
        }

        .booth-text-info {
            display: flex;
            flex-direction: column;
            gap: 1px;
            font-size: 13px;
            color: #1e293b;
            line-height: 1.2;
        }

        .voter-table-header-select {
            margin-top: 4px;
            padding: 4px 8px !important;
            font-size: 12px !important;
            border: 1.5px solid #e2e8f0 !important;
            border-radius: 6px !important;
            background: #fff !important;
            cursor: pointer;
            width: 100%;
            font-weight: 700 !important;
            color: #1e293b !important;
            height: 30px !important;
        }

        .search-box-v2 .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.5;
            z-index: 5;
        }

        .stats-chips-group {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
        }

        .s-chip {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            border: 1px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .s-chip:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        }

        .s-chip.male {
            background: #eff6ff;
            color: #1e40af;
            border-color: #dbeafe;
        }

        .s-chip.female {
            background: #fff1f2;
            color: #be123c;
            border-color: #ffe4e6;
        }

        .s-chip.trans {
            background: #fefce8;
            color: #854d0e;
            border-color: #fef08a;
        }

        .s-chip.total {
            background: #fee2e2;
            color: #991b1b;
            border-color: #fecaca;
        }

        .s-chip.filtered {
            background: #f0fdf4;
            color: #166534;
            border-color: #dcfce7;
        }

        .clear-filters-v2 {
            padding: 8px 14px;
            background: #fff;
            color: #DD1100;
            border: 2px solid #DD1100;
            border-radius: 12px;
            font-weight: 700;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
            white-space: nowrap;
        }

        .clear-filters-v2:hover {
            background: #DD1100;
            color: #fff;
        }

        @media (max-width: 768px) {
            .voter-stats-bar {
                flex-wrap: wrap;
                overflow-x: visible;
                gap: 12px;
            }

            .search-box-v2 {
                max-width: 100%;
                width: 100%;
            }

            .stats-chips-group {
                overflow-x: auto;
                width: 100%;
                padding-bottom: 5px;
            }

            .booth-dropdown-v2 {
                width: calc(100vw - 40px);
            }

            .clear-filters-v2 {
                margin-left: 0;
                width: 100%;
                justify-content: center;
            }
        }

        /* LOADING SPINNER */
        .spinner {
            border: 3px solid #333;
            border-top: 3px solid #DD1100;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .loading-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 200px;
        }

        /* EMPTY STATE */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }

        .empty-state-icon {
            font-size: 64px;
            margin-bottom: 20px;
        }

        .empty-state h3 {
            color: #DD1100;
            font-size: 24px;
            margin-bottom: 10px;
        }

        .empty-state p {
            color: #999;
            font-size: 16px;
        }

        /* BOOTH CARD STYLES */
        .booth-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 25px;
            border: 1px solid #e5e7eb;
            border-left: 6px solid #DD1100;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .booth-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(221, 17, 0, 0.1);
        }

        .booth-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 15px;
        }

        .booth-number {
            background: #DD1100;
            color: #fff;
            padding: 6px 14px;
            border-radius: 10px;
            font-weight: 800;
            font-size: 15px;
            flex-shrink: 0;
            box-shadow: 0 4px 8px rgba(221, 17, 0, 0.2);
        }

        .booth-voter-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            background: #f9fafb;
            padding: 15px;
            border-radius: 12px;
        }

        .voter-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .voter-stat label {
            font-size: 10px;
            color: #6b7280;
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .voter-stat .value {
            font-size: 16px;
            font-weight: 700;
            color: #111827;
        }

        .total-voters-badge {
            grid-column: span 3;
            background: #fff;
            padding: 12px;
            border-radius: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 2px solid #DD1100;
            margin-top: 10px;
            box-shadow: 0 4px 6px rgba(221, 17, 0, 0.05);
        }

        .total-voters-badge label {
            font-size: 13px;
            font-weight: 800;
            color: #1a1a1a;
            margin: 0;
        }

        .total-voters-badge .value {
            font-size: 22px;
            font-weight: 900;
            color: #DD1100;
        }

        /* BOOTH TABLE STYLES */
        .booth-table-container {
            background: #fff;
            border-radius: 16px;
            overflow-x: auto;
            border: 1px solid #e2e8f0;
            margin-top: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            max-height: calc(100vh - 250px);
            position: relative;
        }

        .booth-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 14px;
        }

        .booth-table thead {
            position: sticky;
            top: 0;
            z-index: 20;
        }

        .booth-table th {
            background: #f8fafc;
            padding: 15px 12px;
            text-align: left;
            border-bottom: 2px solid #DD1100;
            color: #1e293b;
            font-weight: 800;
            white-space: nowrap;
        }

        .booth-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #edf2f7;
            color: #4b5563;
            vertical-align: middle;
        }

        .booth-table tr:hover {
            background: #fff8f8;
        }

        .booth-table .badge-serial {
            background: #DD1100;
            color: #000;
            padding: 4px 10px;
            border-radius: 6px;
            font-weight: 800;
        }

        @media (max-width: 768px) {
            .booth-table-container {
                max-height: unset;
                border-radius: 12px;
            }

            .desktop-only-table {
                display: none;
            }
        }

        /* VOTER TABLE STYLES - Consolidated & Optimized */
        .voter-table-container {
            display: flex;
            flex-direction: column;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            margin-top: 6px;
            flex: 1;
            overflow: hidden;
            /* Contains the scrollable wrapper */
            min-height: 0;
            position: relative;
        }

        .voter-table-wrapper {
            overflow: auto;
            /* Internal scrolling for sticky header */
            flex: 1;
            width: 100%;
            position: relative;
            /* Containing block for sticky */
        }

        .voter-table {
            width: 100%;
            min-width: 100%;
            border-collapse: separate;
            /* Required for sticky borders */
            border-spacing: 0;
            font-size: 13px;
            background: #fff;
            table-layout: auto;
            /* Changed to auto for flexibility */
        }

        .voter-table th {
            background: #f8fafc !important;
            padding: 8px 10px;
            /* Reduced vertical padding */
            text-align: center;
            border-bottom: 3px solid #DD1100;
            border-right: 1px solid #cbd5e1;
            color: #475569;
            font-weight: 800;
            white-space: normal;
            vertical-align: middle;
            line-height: 1.3;
            position: sticky !important;
            top: 0 !important;
            z-index: 105 !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .voter-table thead {
            position: sticky !important;
            top: 0 !important;
            z-index: 110 !important;
        }



        .voter-table td {
            padding: 8px 10px;
            border-bottom: 1px solid #edf2f7;
            border-right: 1px solid #f1f5f9;
            color: #374151;
            vertical-align: middle;
        }

        /* Sticky Action Column (Last Column) */
        .voter-table th:last-child {
            z-index: 120 !important;
            /* Highest priority: top-right corner */
            background: #f8fafc !important;
            border-bottom: 3px solid #DD1100 !important;
        }

        .voter-table td:last-child {
            position: sticky !important;
            right: 0 !important;
            background: #fff;
            box-shadow: -4px 0 8px rgba(0, 0, 0, 0.05);
            text-align: center;
            z-index: 90 !important;
            /* Keep sticky column above data cells */
        }

        .voter-table th:last-child {
            position: sticky !important;
            right: 0 !important;
            top: 0 !important;
        }

        .voter-table tr:hover td {
            background: #f8fafc;
        }

        .voter-table tr:hover td:last-child {
            background: #fdf2f2;
        }

        /* VOTER SCREEN LAYOUT FIX (Google Sheets Style) */
        .voter-content {
            display: flex;
            flex-direction: column;
            overflow: hidden !important;
            height: 100%;
            padding: 8px 12px 0 12px !important;
            max-width: 100%;
        }

        @media (max-width: 768px) {
            .voter-content {
                padding: 6px 8px 0 8px !important;
            }
        }

        .voter-content .sticky-toolbar {
            flex-shrink: 0;
            /* Toolbar never shrinks */
            position: static !important;
            /* Remove sticky, just standard block */
            background: transparent !important;
            border-bottom: none !important;
            padding-bottom: 0 !important;
            margin-bottom: 0 !important;
        }

        .voter-content .voter-table-container,
        .voter-table-container {
            margin-top: 8px;
            margin-bottom: 12px;
            background: #fff;
            overflow: hidden;
            max-width: 100%;
            width: 100%;
            flex: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        /* Responsive table sizing */
        @media (min-width: 1400px) {
            .voter-table {
                font-size: 13px;
            }

            .voter-table th,
            .voter-table td {
                padding: 8px 12px;
            }
        }

        @media (min-width: 1920px) {
            .voter-table {
                font-size: 14px;
            }

            .voter-table th,
            .voter-table td {
                padding: 10px 15px;
            }
        }

        @media (max-width: 1200px) {
            .voter-table {
                font-size: 12px;
            }

            .voter-table th,
            .voter-table td {
                padding: 6px 8px;
            }
        }

        /* User Preferred Column Widths - Set as min-widths for flexibility */
        .voter-table th:nth-child(1) {
            min-width: 60px;
        }

        /* Serial */
        .voter-table th:nth-child(2) {
            min-width: 110px;
        }

        /* House No */
        .voter-table th:nth-child(3) {
            min-width: 200px;
        }

        /* Name/Rel */
        .voter-table th:nth-child(4) {
            min-width: 140px;
        }

        /* EPIC */
        .voter-table th:nth-child(5) {
            min-width: 90px;
        }

        /* Age */
        .voter-table th:nth-child(6) {
            min-width: 110px;
        }

        /* Gender */
        .voter-table th:nth-child(7) {
            min-width: 120px;
        }

        /* Party */
        .voter-table th:nth-child(8) {
            min-width: 110px;
        }

        /* Phone */
        .voter-table th:nth-child(9) {
            width: 120px;
        }

        /* Actions (Stay fixed) */

        .voter-table td {
            padding: 8px 10px;
            border-bottom: 1px solid #edf2f7;
            border-right: 1px solid #f1f5f9;
            color: #374151;
            vertical-align: middle;
            font-size: 13px;
            text-align: center;
            /* Default to center */
        }

        .voter-table td:nth-child(3),
        .voter-table td:nth-child(8) {
            text-align: left;
            /* Left align text columns */
        }

        .voter-table td:last-child {
            border-right: none;
        }

        .voter-table tr:hover td {
            background: #f8fafc;
        }

        .voter-table tr:hover td:last-child {
            background: #fdf2f2;
        }

        .badge-epic {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            color: #1e40af;
            padding: 5px 10px;
            border-radius: 6px;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            border: 1.5px solid #93c5fd;
            display: inline-block;
            letter-spacing: 0.5px;
        }

        .badge-serial {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            color: #92400e;
            padding: 4px 10px;
            border-radius: 6px;
            font-weight: 800;
            font-size: 13px;
            border: 1.5px solid #fcd34d;
            display: inline-block;
        }

        /* COLUMN FILTER SELECTS */
        .voter-table th select {
            width: 100%;
            /* Fill the th width */
            max-width: 180px;
            /* Limit for very wide screens */
            font-size: 11px;
            padding: 4px 6px;
            border: 1.5px solid #cbd5e1;
            border-radius: 6px;
            background: #fff;
            color: #1e293b;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }

        .voter-table th select:hover {
            border-color: #DD1100;
            background: #fff5f5;
        }

        .voter-table th select:focus {
            outline: none;
            border-color: #DD1100;
            box-shadow: 0 0 0 2px rgba(221, 17, 0, 0.1);
        }

        /* BOOTH MANAGER SPECIFIC LAYOUT */
        .booth-content {
            display: flex;
            flex-direction: column;
            height: calc(100vh - var(--total-header-offset));
            overflow: hidden;
            background: #fff;
            padding: 0 !important;
            /* Remove global content padding */
        }

        .booth-content .sticky-toolbar {
            flex-shrink: 0;
            position: relative;
            top: 0 !important;
            margin-bottom: 0;
            padding: 15px 20px;
            border-bottom: 2px solid #DD1100;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            z-index: 100;
            background: #fdfdfd;
        }

        .booth-scroll-area {
            flex: 1;
            overflow-y: visible;
            padding: 20px;
            background: #fdfdfd;
            -webkit-overflow-scrolling: touch;
        }

        @media (max-width: 768px) {
            .booth-content {
                height: 100%;
            }

            .booth-content .sticky-toolbar {
                padding: 10px 15px;
            }

            .booth-scroll-area {
                padding: 0;
                /* Remove padding to let cards breathe */
                padding-bottom: 100px;
                overflow-y: auto !important;
                /* Allow scroll in booth cards view */
            }

            .booth-scroll-area .functionary-card,
            .booth-scroll-area .booth-card {
                margin: 15px;
                /* Add margin to cards instead of area padding */
            }
        }



        .voter-cards-container {
            display: none !important;
        }



        @media (max-width: 768px) {
            .voter-content {
                height: 100% !important;
            }

            .voter-list-scroll-area {
                padding: 10px !important;
                min-height: 0;
                overflow-y: auto !important;
                /* Mobile needs scroll for card view */
            }

            .voter-content .sticky-toolbar {
                padding: 8px 10px !important;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
            }

            .voter-table-container {
                display: none !important;
            }

            .voter-cards-container {
                display: block !important;
                padding-bottom: 20px;
            }
        }

        .voter-mobile-card {
            background: #fff;
            border-radius: 10px;
            padding: 10px 12px;
            margin-bottom: 10px;
            border: 1px solid #edf2f7;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .voter-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f8fafc;
            padding-bottom: 5px;
            margin-bottom: 2px;
        }

        .voter-card-row {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
        }

        .voter-card-label {
            color: #6b7280;
        }

        .voter-card-value {
            font-weight: 600;
            color: #111827;
        }

        .voter-card-actions {
            display: flex;
            gap: 8px;
            margin-top: 5px;
            padding-top: 8px;
            border-top: 1px solid #f8fafc;
        }

        .btn-card-edit {
            flex: 1;
            background: #f1f5f9;
            color: #2563eb;
            border: 1px solid #e2e8f0;
            padding: 8px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-card-edit:hover {
            background: #e2e8f0;
            transform: translateY(-2px);
        }

        .btn-card-delete {
            flex: 1;
            background: #fff1f2;
            color: #e11d48;
            border: 1px solid #ffe4e6;
            padding: 8px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-card-delete:hover {
            background: #fee2e2;
            transform: translateY(-2px);
        }

        .btn-primary {
            background: #DD1100;
            color: #fff;
            box-shadow: 0 4px 10px rgba(221, 17, 0, 0.2);
        }

        @media (min-width: 769px) {
            .voter-cards-container {
                display: none;
            }
        }

        /* TABS SYSTEM */
        .tabs-container {
            display: flex;
            gap: 5px;
            background: #f3f4f6;
            padding: 5px;
            border-radius: 12px;
            margin-bottom: 20px;
            width: fit-content;
        }

        .tab-button {
            padding: 10px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 700;
            font-size: 14px;
            transition: all 0.3s;
            border: none;
            background: transparent;
            color: #6b7280;
        }

        .tab-button.active {
            background: #fff;
            color: #DD1100;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        /* VOTER STATISTICS GRID */
        .voter-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 12px;
        }

        @media (max-width: 768px) {
            .voter-stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }

        /* FAMILY CARDS */
        .family-card {
            background: #fff;
            border: 1px solid #eee;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
            position: relative;
            cursor: pointer;
            transition: all 0.3s;
        }

        .family-card:hover {
            border-color: #DD1100;
            box-shadow: 0 8px 25px rgba(221, 17, 0, 0.08);
            transform: translateY(-2px);
        }

        .family-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f3f4f6;
            padding-bottom: 15px;
            margin-bottom: 15px;
        }

        .family-head-badge {
            background: #fff5f5;
            color: #DD1100;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 800;
            border: 1px solid #ffebeb;
        }

        .family-member-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            border-bottom: 1px solid #f9fafb;
        }

        .family-member-item:last-child {
            border-bottom: none;
        }

        /* VOTER SELECTION LIST (In Modal) */
        .voter-selector-list {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #eee;
            border-radius: 10px;
            margin-top: 10px;
        }

        /* STICKY TOOLBAR */
        .sticky-toolbar {
            position: sticky;
            top: 0;
            z-index: 99;
            background: #f9fafb;
            padding-bottom: 15px;
            margin-bottom: 15px;
            border-bottom: 1px solid #e5e7eb;
        }

        /* NEWS TICKER */
        .news-ticker {
            background: #fccb05;
            /* Bright yellow/gold for high visibility */
            color: #000;
            padding: 12px 0;
            overflow: hidden;
            white-space: nowrap;
            font-size: 15px;
            font-weight: 800;
            border-bottom: 2px solid #DD1100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1100;
            /* Ensure ticker is always visible above header shadow */
            height: var(--ticker-height);
            line-height: 21px;
            width: 100%;
        }

        .news-track {
            display: inline-block;
            white-space: nowrap;
            animation: ticker 30s linear infinite;
            padding-left: 100%;
        }

        @keyframes ticker {
            0% {
                transform: translate3d(0, 0, 0);
            }

            100% {
                transform: translate3d(-100%, 0, 0);
            }
        }

        .voter-select-item {
            padding: 12px;
            border-bottom: 1px solid #f3f4f6;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: background 0.2s;
        }

        .voter-select-item:hover {
            background: #fef2f2;
        }

        .voter-select-item.selected {
            background: #fff5f5;
            border-left: 4px solid #DD1100;
        }

        .voter-select-item.occupied {
            opacity: 0.6;
            background: #f9fafb;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* COMPACT BOOTH MANAGER STYLES */
        .booth-stats-strip {
            display: flex;
            gap: 10px;
            padding: 8px 15px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
            margin-bottom: 15px;
            align-items: center;
            overflow-x: auto;
            scrollbar-width: none;
            border: 1px solid #f1f5f9;
        }

        .booth-stats-strip::-webkit-scrollbar {
            display: none;
        }

        .stat-pill {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .stat-pill .label {
            opacity: 0.8;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-pill .val {
            font-size: 15px;
            font-weight: 900;
        }

        .stat-pill.total {
            background: #f0fdf4;
            color: #166534;
            border: 1px solid #dcfce7;
        }

        .stat-pill.male {
            background: #e0f2fe;
            color: #0369a1;
            border: 1px solid #bae6fd;
        }

        .stat-pill.female {
            background: #fce7f3;
            color: #be185d;
            border: 1px solid #fbcfe8;
        }

        .stat-pill.trans {
            background: #f3e8ff;
            color: #7e22ce;
            border: 1px solid #e9d5ff;
        }

        .stat-pill.grand-total {
            background: #DD1100;
            color: #fff;
            box-shadow: 0 4px 12px rgba(221, 17, 0, 0.2);
        }

        @media (max-width: 768px) {
            .sticky-toolbar {
                padding: 10px 10px 5px !important;
                margin-bottom: 5px !important;
            }

            .toolbar-row {
                margin-bottom: 8px !important;
            }

            .search-filter-bar {
                gap: 5px !important;
            }

            .booth-stats-strip {
                padding: 6px;
                gap: 5px;
                margin-bottom: 10px;
                border-radius: 10px;
            }

            .stat-pill {
                padding: 4px 8px;
                gap: 4px;
                font-size: 10px;
            }

            .stat-pill .label {
                font-size: 8px;
            }

            .stat-pill .val {
                font-size: 13px;
            }

            /* Compact Booth Cards for Mobile */
            .booth-card {
                padding: 12px !important;
                gap: 8px !important;
                border-radius: 15px !important;
            }

            .booth-voter-grid {
                padding: 8px !important;
                gap: 6px !important;
                border-radius: 10px !important;
            }

            .voter-stat .value {
                font-size: 13px !important;
            }

            .voter-stat label {
                font-size: 8px !important;
            }

            .total-voters-badge {
                padding: 6px 10px !important;
            }

            .total-voters-badge .value {
                font-size: 16px !important;
            }

            .total-voters-badge label {
                font-size: 10px !important;
            }

            .booth-number {
                padding: 3px 8px !important;
                font-size: 12px !important;
                border-radius: 6px !important;
            }

            .booth-card h3 {
                font-size: 15px !important;
            }

            /* Voter Manager Mobile Compactness */
            .voter-stats-bar {
                padding: 5px 8px !important;
                gap: 6px !important;
                border-radius: 10px !important;
            }

            .voter-stats-bar select,
            .voter-stats-bar input {
                height: 36px !important;
                font-size: 12px !important;
                padding: 4px 8px !important;
            }

            .search-box-v2 input {
                height: 36px !important;
                font-size: 12px !important;
                padding-left: 30px !important;
            }

            .search-box-v2 .search-icon {
                left: 8px !important;
                font-size: 14px !important;
            }

            .s-chip {
                padding: 4px 8px !important;
                gap: 4px !important;
                font-size: 11px !important;
                border-radius: 8px !important;
            }

            .tabs-container {
                gap: 5px !important;
                padding: 4px !important;
                background: #f1f5f9 !important;
                border-radius: 10px !important;
            }

            .tab-button {
                padding: 8px 12px !important;
                font-size: 13px !important;
                border-radius: 8px !important;
            }

            .tab-button span {
                font-size: 14px !important;
            }
        }

        /* Committee Sub-Tabs */
        .committee-tabs {
            display: flex;
            overflow-x: auto;
            gap: 10px;
            padding: 15px 0;
            margin: 0 0 20px 0;
            position: sticky;
            top: 0;
            background: #fff;
            z-index: 100;
            scrollbar-width: none;
            -ms-overflow-style: none;
            align-items: center;
            border-bottom: 1px solid #f1f5f9;
        }

        .committee-tabs::-webkit-scrollbar {
            display: none;
        }

        .committee-tab {
            padding: 8px 18px;
            background: #f8fafc;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 800;
            white-space: nowrap;
            cursor: pointer;
            border: 1px solid #e2e8f0;
            transition: all 0.2s ease;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .committee-tab:hover {
            transform: translateY(-2px);
            border-color: #DD1100;
            color: #DD1100;
        }

        .committee-tab.active {
            background: #DD1100;
            color: #fff;
            border-color: #DD1100;
            box-shadow: 0 8px 20px rgba(221, 17, 0, 0.3);
        }

        /* PREMIUM ATM MEMBER CARD */
        .modern-agent-card {
            background: #fff;
            border-radius: 12px;
            padding: 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
            transition: all 0.2s ease;
            position: relative;
            display: flex;
            flex-direction: column;
            border: 2px solid #e2e8f0;
            overflow: hidden;
            min-height: 160px;
            background-image: radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.01) 0%, transparent 20%);
        }

        .modern-agent-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: currentColor;
            z-index: 10;
        }

        .modern-agent-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
            border-color: currentColor;
        }

        .add-placeholder:hover {
            background: #fff !important;
            border-color: #DD1100 !important;
            color: #DD1100 !important;
        }

        .card-header {
            padding: 12px 12px 8px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f1f5f9;
        }

        .role-badge-pill {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 950;
            display: flex;
            align-items: center;
            gap: 6px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .card-body {
            padding: 12px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .card-main-info {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .card-photo-wrapper {
            position: relative;
            flex-shrink: 0;
        }

        .card-photo-box {
            width: 75px;
            height: 90px;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #e2e8f0;
        }

        .card-photo-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .voter-verified-badge {
            position: absolute;
            bottom: -5px;
            right: -5px;
            background: #22c55e;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            border: 2px solid #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .card-text-content {
            flex: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            align-content: start;
        }

        .card-name-area {
            margin-bottom: 10px;
        }

        .card-name {
            font-size: 15px;
            font-weight: 950;
            color: #0f172a;
            line-height: 1.2;
        }

        .card-guardian {
            font-size: 11px;
            color: #dc2626;
            font-weight: 800;
            margin-top: 2px;
        }

        .card-action-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }

        .card-action-btn.edit {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #1e293b;
        }

        .card-action-btn.delete {
            background: #fff1f2;
            border: 1px solid #fecaca;
            color: #ef4444;
        }

        .card-action-btn:hover {
            transform: scale(1.1);
        }

        .card-info-item {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .info-label {
            font-size: 8px;
            font-weight: 950;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .info-value {
            font-size: 11px;
            font-weight: 1000;
            color: #0f172a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-family: 'Inter', sans-serif;
        }

        .card-footer {
            margin-top: auto;
            border-top: 1px solid #f1f5f9;
            padding: 8px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8fafc55;
        }

        .card-phone {
            font-size: 11px;
            font-weight: 900;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .card-change-btn {
            font-size: 10px;
            font-weight: 950;
            text-decoration: underline;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            color: #64748b;
        }

        .role-badge-tag {
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 9px;
            font-weight: 900;
            letter-spacing: 0.3px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        /* PREMIUM ADMIN LOGIN STYLES */
        .admin-login-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #050505;
            position: relative;
            overflow: hidden;
            font-family: 'Outfit', 'Inter', sans-serif;
            width: 100%;
        }

        .admin-login-card {
            width: 90%;
            max-width: 420px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 32px;
            z-index: 10;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            animation: adminFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes adminFadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .admin-login-header {
            text-align: center;
            margin-bottom: 35px;
        }

        .admin-logo-premium {
            width: 70px;
            height: 70px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, #DD1100, #990c00);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            box-shadow: 0 10px 20px rgba(221, 17, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
        }

        .admin-login-header h1 {
            color: #fff;
            font-size: 26px;
            font-weight: 800;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .admin-login-header p {
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
            font-weight: 500;
        }

        .admin-input-group {
            margin-bottom: 20px;
        }

        .admin-input-group label {
            display: block;
            color: rgba(255, 255, 255, 0.7);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 8px;
            margin-left: 4px;
        }

        .admin-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .admin-input-icon {
            position: absolute;
            left: 16px;
            color: rgba(255, 255, 255, 0.3);
            font-size: 18px;
        }

        .admin-input-premium {
            width: 100%;
            padding: 14px 16px 14px 48px;
            background: rgba(255, 255, 255, 0.05) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 16px !important;
            color: #fff !important;
            font-size: 15px !important;
            font-weight: 500 !important;
            transition: all 0.3s ease;
            outline: none !important;
        }

        .admin-input-premium:focus {
            background: rgba(255, 255, 255, 0.08) !important;
            border-color: #DD1100 !important;
            box-shadow: 0 0 0 4px rgba(221, 17, 0, 0.15) !important;
        }

        .admin-login-btn {
            width: 100%;
            padding: 16px;
            background: #DD1100;
            color: #fff;
            border: none;
            border-radius: 16px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 25px;
            box-shadow: 0 10px 20px rgba(221, 17, 0, 0.2);
        }

        .admin-login-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            background: #ff1a05;
            box-shadow: 0 15px 30px rgba(221, 17, 0, 0.3);
        }

        .admin-login-btn:hover .btn-arrow {
            transform: translateX(5px);
        }

        .btn-arrow {
            display: inline-block;
            transition: transform 0.3s ease;
        }

        .admin-login-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            filter: grayscale(0.5);
        }

        .admin-spinner-premium {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: adminSpin 0.8s linear infinite;
        }

        @keyframes adminSpin {
            to {
                transform: rotate(360deg);
            }
        }

        .admin-error-msg {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.2);
            color: #ef4444;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .admin-blob {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(221, 17, 0, 0.15) 0%, transparent 70%);
            filter: blur(100px);
            border-radius: 50%;
            z-index: 1;
            pointer-events: none;
            opacity: 0.6;
            will-change: transform;
        }

        .admin-blob-1 {
            top: -150px;
            right: -100px;
            animation: admin-blob-premium 25s infinite alternate ease-in-out;
        }

        .admin-blob-2 {
            bottom: -200px;
            left: -150px;
            background: radial-gradient(circle, rgba(221, 17, 0, 0.1) 0%, transparent 70%);
            animation: admin-blob-premium 30s infinite alternate-reverse ease-in-out;
        }

        .admin-blob-3 {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 1000px;
            height: 1000px;
            background: radial-gradient(circle, rgba(221, 17, 0, 0.05) 0%, transparent 80%);
            opacity: 0.4;
        }

        @keyframes admin-blob-premium {
            0% {
                transform: translate(0, 0) scale(1) rotate(0deg);
            }

            33% {
                transform: translate(80px, -40px) scale(1.1) rotate(8deg);
            }

            66% {
                transform: translate(-40px, 60px) scale(0.95) rotate(-5deg);
            }

            100% {
                transform: translate(20px, -20px) scale(1.05) rotate(3deg);
            }
        }

        </style>

        /* Committee Toolbar Selects */
        .committee-toolbar-select {
            height: 42px !important;
            padding: 0 30px 0 10px !important;
            /* Right padding for arrow */
            font-size: 14px !important;
            border: 1px solid #cbd5e1 !important;
            border-radius: 8px !important;
            background-color: #ffffff !important;
            color: #1e293b !important;
            text-align: center !important;
            text-align-last: center !important;
            appearance: none !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 10px center !important;
            background-size: 16px !important;
            font-weight: 600 !important;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
            line-height: normal !important;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .committee-toolbar-select:focus {
            outline: none !important;
            border-color: #DD1100 !important;
            box-shadow: 0 0 0 3px rgba(221, 17, 0, 0.1) !important;
        }

        .committee-toolbar-select option {
            text-align: center;
            padding: 10px;
        }