* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    min-height: 100vh;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.dashboard-sidebar {
    width: 290px;
    min-width: 290px;
    background-color: #0f172a;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    box-sizing: border-box;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid #1e293b;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e293b;
}

.sidebar-brand .brand-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.sidebar-brand .brand-text h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.sidebar-brand .brand-text small {
    color: #94a3b8;
    font-size: 0.72rem;
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: #1e293b;
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-nav .nav-link.active {
    background-color: #059669;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.sidebar-profile-card {
    background-color: #1e293b;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
}

.profile-avatar {
    font-size: 1.3rem;
    background: #0f172a;
    padding: 6px;
    border-radius: 8px;
}

.profile-titles {
    overflow: hidden;
}

.profile-name {
    display: block;
    font-size: 0.88rem;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-phone {
    color: #94a3b8;
    font-size: 0.75rem;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.8rem;
}

.profile-meta .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
}

.profile-meta .meta-row strong {
    color: #10b981;
    font-weight: 600;
}

.profile-meta .meta-row small {
    color: #e2e8f0;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #1e293b;
}

.sidebar-footer .status-ticker-chip {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.74rem;
    color: #e2e8f0;
}

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

.footer-buttons .btn {
    width: 100%;
    border-color: #334155;
    color: #cbd5e1;
    text-align: left;
    padding: 7px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
    background: transparent;
}

.footer-buttons .btn:hover {
    background-color: #1e293b;
    color: #ffffff;
}

.btn-logout {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.2) !important;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 32px 40px;
    background-color: #f8fafc;
    overflow-y: auto;
}
.view-slide-container {
    animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    min-height: 520px;
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-fade-in {
    animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulsing-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.pulsing-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

.pulsing-dot.offline {
    background-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulseAmber 1.2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulseAmber {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.rate-ticker {
    font-size: 0.76rem;
    font-weight: 700;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, transform 0.05s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    width: 100%;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #4b5563;
    color: #ffffff;
    width: 100%;
}

.btn-secondary:hover {
    background: #374151;
}

.btn-success {
    background: #10b981;
    color: #ffffff;
    width: 100%;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    width: 100%;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline-sm {
    background: transparent;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
    color: #374151;
}

.btn-outline-sm:hover {
    background: #f3f4f6;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.module-header h2 {
    margin: 0;
    font-size: 1.45rem;
    color: #0f172a;
    font-weight: 700;
}

.status-badge.live {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vetting-notice-banner {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-left: 5px solid #d97706;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: #92400e;
}

.admin-banner {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-left: 5px solid #ef4444;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.admin-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    width: fit-content;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-single {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-competitive {
    background: #ede9fe;
    color: #6d28d9;
}

.voted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
}

.voted-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.voted-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.auth-hero-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 40px auto;
}

.auth-hero-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: #ffffff;
    padding: 32px 28px 24px 28px;
}

.auth-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-hero-header h2 {
    margin: 0 0 6px 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-hero-header p {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: #bfdbfe;
    max-width: 580px;
}

.auth-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.25);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
    gap: 4px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.auth-body {
    padding: 28px;
}

.phone-input-wrapper,
.input-with-icon {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    overflow: hidden;
}

.phone-prefix,
.input-icon {
    padding: 12px 14px;
    font-size: 1.1rem;
    background: #f3f4f6;
    border-right: 1px solid #e5e7eb;
}

.phone-input-wrapper input,
.input-with-icon input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 12px 14px;
    font-size: 1rem;
    width: 100%;
}

.commodity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.commodity-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.commodity-chip:hover {
    border-color: #93c5fd;
}

.commodity-chip.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.chip-icon {
    font-size: 1.8rem;
}

.chip-content strong {
    display: block;
    font-size: 0.85rem;
    color: #111827;
}

.chip-content small {
    font-size: 0.72rem;
    color: #6b7280;
}

.auth-submit-btn {
    padding: 14px 20px;
    font-size: 1rem;
    margin-top: 20px;
}

.dao-metrics-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
}

.dao-stat {
    display: flex;
    flex-direction: column;
}

.dao-stat-label {
    font-size: 0.75rem;
    color: #c7d2fe;
    text-transform: uppercase;
    font-weight: 700;
}

.dao-stat-val {
    font-size: 1.3rem;
    margin: 4px 0 2px 0;
    color: #ffffff;
}

.dao-stat small {
    font-size: 0.74rem;
    color: #a5b4fc;
}

.dao-stat-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.dao-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.dao-filter {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.dao-filter:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dao-filter.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.ballot-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    background: #f9fafb;
}

.ballot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.hybrid-progress-wrap {
    margin: 10px 0;
}

.hybrid-bar-track {
    background: #e2e8f0;
    height: 10px;
    border-radius: 9999px;
    overflow: hidden;
    display: flex;
}

.hybrid-bar-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.hybrid-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 4px;
}

.ballot-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.account-balance-card {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #ffffff;
    padding: 18px 20px;
    border-radius: 14px;
}

.bal-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #a7f3d0;
    font-weight: 700;
}

.bal-value {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 4px 0;
}

.bal-subtext {
    font-size: 0.78rem;
    color: #d1fae5;
}

.action-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.action-btn-row .btn {
    flex: 1;
}

.calc-breakdown-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 10px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    margin-bottom: 6px;
    color: #334155;
}

.calc-status {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
}

.calc-status.eligible {
    color: #059669;
}

.calc-status.ineligible {
    color: #dc2626;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.expense-info strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

.expense-info small {
    color: #64748b;
    font-size: 0.78rem;
}

.expense-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.facility-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.facility-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.facility-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.facility-icon {
    font-size: 2.2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 10px;
}

.facility-title-wrap strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.facility-title-wrap small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 3px;
}

.facility-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
}

.facility-rate {
    font-size: 0.82rem;
    color: #1e40af;
    font-weight: 700;
}

.market-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8888;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 580px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.close-x {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.charter-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 92%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.charter-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.charter-emblem {
    font-size: 2.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 12px;
}

.charter-title-block {
    flex: 1;
}

.charter-pretitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #2563eb;
}

.charter-title-block h3 {
    margin: 2px 0 2px 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.charter-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
}

.charter-doc-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 24px;
    gap: 8px;
}

.doc-tab {
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.doc-tab.active {
    background: #ffffff;
    color: #1e40af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.charter-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    padding: 14px 28px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.highlight-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #334155;
}

.charter-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.article-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.article-tag {
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.charter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.onboarding-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 24px;
    width: 90%;
    max-width: 440px;
    text-align: center;
}

.onboarding-slide {
    display: none;
}

.onboarding-slide.active {
    display: block;
    animation: slideFadeIn 0.35s ease forwards;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.illustration-box {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.anim-circle {
    font-size: 2.8rem;
    animation: pulseLoop 1.8s infinite ease-in-out;
}

@keyframes pulseLoop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.anim-scale {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scale-side {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    color: #1d4ed8;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    animation: balanceSway 2.4s infinite alternate ease-in-out;
}

.scale-side.right {
    animation-delay: -1.2s;
}

@keyframes balanceSway {
    0% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(6px);
    }
}

.anim-gears {
    font-size: 2.8rem;
    letter-spacing: 8px;
}

.anim-shield {
    background: #ecfdf5;
    border: 2px solid #10b981;
    color: #047857;
    font-size: 1.35rem;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
}

.dot.active {
    background: #2563eb;
    transform: scale(1.25);
}

.carousel-actions {
    display: flex;
    gap: 10px;
}

.btn:disabled,
.btn-loading {
    opacity: 0.75;
    cursor: not-allowed !important;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: -2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.small-text {
    font-size: 0.83rem;
    color: #6b7280;
    margin: 4px 0 12px 0;
}

@media (max-width: 960px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .dashboard-main {
        padding: 20px 16px;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }
}


.ballots-container {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 6px;
}

.ballots-container::-webkit-scrollbar {
    width: 6px;
}

.ballots-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.ballots-container::-webkit-scrollbar-track {
    background-color: #f8fafc;
}

.ballot-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-left: 5px solid #64748b;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ballot-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.ballot-item.type-member_admission {
    border-left-color: #10b981;
}

.ballot-item.type-maintenance {
    border-left-color: #3b82f6;
}

.ballot-item.type-utility_bill {
    border-left-color: #f59e0b;
}

.ballot-item.type-general_motion {
    border-left-color: #8b5cf6;
}

.ballot-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.ballot-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.ballot-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.ballot-vote-btns {
    display: flex;
    gap: 8px;
}

.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px 6px 4px;
    margin-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.page-info {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.page-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
}