@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1E2A78;
    --primary-dark: #11183F;
    --accent: #6D5DFB;
    --teal: #00B8A9;

    --background: #F6F7FB;
    --white: #FFFFFF;

    --text: #172033;
    --muted: #667085;

    --border: #E5E7EB;

    --success: #12B76A;
    --warning: #F79009;
    --danger: #F04438;

    --shadow: 0 15px 40px rgba(17, 24, 63, 0.08);
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

/* =========================
   PUBLIC HEADER
========================= */

.public-header {
    height: 78px;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-text strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
}

.brand-text span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.header-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 18px;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--primary);
    font-size: 14px;
    font-weight: 600;

    transition: .2s ease;
}

.header-admin:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =========================
   HERO
========================= */

.hero {
    min-height: calc(100vh - 78px);

    display: flex;
    align-items: center;

    padding: 70px 6%;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(109, 93, 251, 0.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(0, 184, 169, 0.08),
            transparent 28%
        );
}

.hero-container {
    width: 100%;
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;

    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.system-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    background: rgba(30,42,120,.07);
    color: var(--primary);

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;

    margin-bottom: 24px;
}

.system-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 800;
    color: var(--primary-dark);
}

.hero h1 span {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--accent),
        var(--teal)
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);
    margin-top: 25px;
    max-width: 600px;
}

.organisation {
    margin-top: 28px;

    font-size: 14px;
    color: var(--muted);
}

.organisation strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    margin-top: 5px;
}

/* =========================
   ACTION AREA
========================= */

.action-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;

    padding: 28px;

    box-shadow: var(--shadow);
}

.panel-header {
    margin-bottom: 24px;
}

.panel-header h2 {
    font-size: 20px;
    color: var(--primary-dark);
}

.panel-header p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.action-card {
    display: flex;
    align-items: center;
    gap: 17px;

    padding: 19px;

    border: 1px solid var(--border);
    border-radius: 15px;

    margin-bottom: 13px;

    transition: .2s ease;
}

.action-card:hover {
    border-color: rgba(30,42,120,.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17,24,63,.07);
}

.action-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(30,42,120,.08);
    color: var(--primary);

    font-size: 20px;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.action-content span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.action-arrow {
    color: var(--muted);
}

.action-card.voting .action-icon {
    background: rgba(0,184,169,.10);
    color: var(--teal);
}

/* =========================
   STATUS
========================= */

.status-box {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
    padding: 13px 15px;

    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 12px;

    font-size: 12px;
    color: var(--muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
}

.status-dot.open {
    background: var(--success);
}

/* =========================
   FOOTER
========================= */

.public-footer {
    border-top: 1px solid var(--border);
    padding: 25px 6%;
    text-align: center;
    background: white;
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   AUTH
========================= */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-brand {
    background: linear-gradient(
        145deg,
        var(--primary-dark),
        var(--primary),
        var(--accent)
    );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;
}

.auth-brand-inner {
    max-width: 470px;
}

.auth-brand img {
    width: 100px;
    margin-bottom: 35px;
    filter: brightness(0) invert(1);
}

.auth-brand h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.auth-brand p {
    color: rgba(255,255,255,.75);
    line-height: 1.7;
}

.auth-area {
    background: var(--background);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.login-box {
    width: 100%;
    max-width: 430px;

    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;

    padding: 38px;

    box-shadow: var(--shadow);
}

.login-box h2 {
    font-size: 26px;
    color: var(--primary-dark);
}

.login-box > p {
    margin-top: 8px;
    margin-bottom: 28px;

    font-size: 13px;
    color: var(--muted);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
}

.form-control {
    width: 100%;

    height: 48px;

    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 0 14px;

    outline: none;

    font-size: 14px;

    transition: .2s;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(109,93,251,.08);
}

.btn-primary {
    width: 100%;
    height: 48px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--accent)
    );

    color: white;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30,42,120,.22);
}

.alert {
    padding: 12px 14px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 13px;
}

.alert-danger {
    background: #FEF3F2;
    color: var(--danger);
    border: 1px solid #FECACA;
}

/* =========================
   DASHBOARD
========================= */

.dashboard {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 255px;
    flex-shrink: 0;

    background: linear-gradient(
        180deg,
        var(--primary-dark),
        var(--primary)
    );

    color: white;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    padding: 25px 16px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 10px 28px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.sidebar-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar-brand strong {
    font-size: 17px;
}

.sidebar-brand span {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.55);
    margin-top: 3px;
}

.menu-title {
    margin: 25px 10px 9px;

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: rgba(255,255,255,.45);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 12px;

    border-radius: 9px;

    color: rgba(255,255,255,.72);

    font-size: 13px;

    margin-bottom: 3px;

    transition: .2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,.10);
    color: white;
}

.sidebar-menu i {
    width: 19px;
    text-align: center;
}

.dashboard-main {
    margin-left: 255px;
    width: calc(100% - 255px);
}

.dashboard-topbar {
    height: 72px;

    background: white;
    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;
}

.dashboard-content {
    padding: 30px;
}

.page-heading {
    margin-bottom: 25px;
}

.page-heading h1 {
    font-size: 25px;
    color: var(--primary-dark);
}

.page-heading p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
}

.stat-card span {
    font-size: 12px;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    font-size: 27px;
    margin-top: 8px;
    color: var(--primary-dark);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero {
        padding-top: 55px;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .sidebar {
        width: 70px;
        padding: 20px 10px;
    }

    .sidebar-brand {
        justify-content: center;
        padding: 0 0 20px;
    }

    .sidebar-brand div,
    .menu-title,
    .sidebar-menu span {
        display: none;
    }

    .sidebar-menu a {
        justify-content: center;
    }

    .dashboard-main {
        margin-left: 70px;
        width: calc(100% - 70px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .public-header {
        padding: 0 20px;
    }

    .brand-text {
        display: none;
    }

    .hero {
        padding: 45px 20px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .action-panel {
        padding: 20px;
    }

    .dashboard-content {
        padding: 20px 15px;
    }

    .dashboard-topbar {
        padding: 0 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 28px 22px;
    }
}

















/* ==========================================
   BALLOT PAGE
========================================== */

.ballot-page {
    min-height: calc(100vh - 76px);
    background: var(--background);
    padding: 45px 20px 70px;
}

.ballot-container {
    width: min(1100px, 100%);
    margin: 0 auto;
}


/* ==========================================
   BALLOT HEADER
========================================== */

.ballot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-violet);
    margin-bottom: 8px;
}

.ballot-header h1 {
    margin: 0;
    color: var(--text);
    font-size: 34px;
    font-weight: 800;
}

.ballot-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.voter-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 17px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 24, 40, 0.04);
}

.voter-badge > i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0ff;
    color: var(--primary);
    border-radius: 10px;
    font-size: 18px;
}

.voter-badge span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 2px;
}

.voter-badge strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}


/* ==========================================
   ALERT
========================================== */

.ballot-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 18px;
    margin-bottom: 25px;
    border-radius: 12px;
}

.ballot-alert-error {
    background: #fff1f0;
    border: 1px solid #ffd6d2;
    color: var(--danger);
}

.ballot-alert > i {
    font-size: 20px;
}

.ballot-alert strong {
    display: block;
    font-size: 14px;
}

.ballot-alert p {
    margin: 3px 0 0;
    font-size: 13px;
}


/* ==========================================
   POSITION
========================================== */

.position-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 25px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 24, 40, 0.035);
}

.position-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.position-number {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--accent-violet)
    );
    color: white;
    border-radius: 11px;
    font-weight: 800;
}

.position-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
}

.position-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}


/* ==========================================
   CANDIDATE GRID
========================================== */

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );
    gap: 15px;
}


/* ==========================================
   CANDIDATE CARD
========================================== */

.candidate-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.candidate-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.candidate-card-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 110px;
    padding: 15px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.candidate-card:hover .candidate-card-inner {
    border-color: #c9cdf5;
    box-shadow: 0 8px 25px rgba(16, 24, 40, 0.07);
    transform: translateY(-1px);
}

.candidate-card input:checked
~ .candidate-card-inner {
    border-color: var(--primary);
    background: #f7f8ff;
    box-shadow: 0 0 0 3px rgba(30, 42, 120, 0.08);
}


/* ==========================================
   CHECK
========================================== */

.candidate-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: white;
    color: transparent;
    font-size: 13px;
}

.candidate-card input:checked
~ .candidate-card-inner
.candidate-check {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}


/* ==========================================
   PHOTO
========================================== */

.candidate-photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #eef0f4;
}

.candidate-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.candidate-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 27px;
}


/* ==========================================
   CANDIDATE INFO
========================================== */

.candidate-info {
    min-width: 0;
    padding-right: 20px;
}

.candidate-info h3 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.candidate-sid {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.candidate-party {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.candidate-party img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 5px;
}

.candidate-independent {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}


/* ==========================================
   NO CANDIDATES
========================================== */

.no-candidates {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

.no-candidates i {
    font-size: 35px;
    color: #98a2b3;
}

.no-candidates h2 {
    margin: 10px 0 5px;
    color: var(--text);
}

.no-candidates p {
    margin: 0;
    font-size: 14px;
}


/* ==========================================
   SUBMISSION AREA
========================================== */

.ballot-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.ballot-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ballot-warning > i {
    color: var(--success);
    font-size: 21px;
}

.ballot-warning strong {
    display: block;
    color: var(--text);
    font-size: 13px;
}

.ballot-warning p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.ballot-submit {
    min-width: 175px;
    justify-content: center;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 700px) {

    .ballot-page {
        padding: 30px 15px 50px;
    }

    .ballot-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ballot-header h1 {
        font-size: 28px;
    }

    .voter-badge {
        width: 100%;
    }

    .position-section {
        padding: 18px;
    }

    .candidate-grid {
        grid-template-columns: 1fr;
    }

    .ballot-submit-area {
        flex-direction: column;
        align-items: stretch;
    }

    .ballot-submit {
        width: 100%;
    }

}



























/* =========================================================
   ELEXIS NOTIFICATION MODAL
========================================================= */

.elexis-modal-overlay {
    position: fixed;
    inset: 0;

    background: rgba(17, 24, 63, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    backdrop-filter: blur(4px);
}

.elexis-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.elexis-modal {
    width: min(420px, 100%);

    background: #FFFFFF;

    border-radius: 18px;

    padding: 28px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(17, 24, 63, 0.20);

    transform: translateY(15px) scale(0.97);

    transition: transform 0.2s ease;
}

.elexis-modal-overlay.show .elexis-modal {
    transform: translateY(0) scale(1);
}


/* ICON */

.elexis-modal-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 17px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
    font-weight: 800;
}


/* TITLE */

.elexis-modal-title {
    font-size: 20px;
    font-weight: 750;

    color: #172033;

    margin-bottom: 8px;
}


/* MESSAGE */

.elexis-modal-message {
    color: #667085;

    font-size: 14px;

    line-height: 1.65;

    margin-bottom: 23px;
}


/* BUTTON */

.elexis-modal-button {
    width: 100%;

    border: none;

    border-radius: 10px;

    padding: 12px 18px;

    color: #FFFFFF;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.elexis-modal-button:hover {
    transform: translateY(-1px);
}

.elexis-modal-button:active {
    transform: translateY(0);
}


/* SUCCESS */

.elexis-modal.success
.elexis-modal-icon {
    background: #ECFDF3;
    color: #12B76A;
}

.elexis-modal.success
.elexis-modal-button {
    background: #12B76A;
}


/* ERROR */

.elexis-modal.error
.elexis-modal-icon {
    background: #FEF3F2;
    color: #F04438;
}

.elexis-modal.error
.elexis-modal-button {
    background: #F04438;
}


/* WARNING */

.elexis-modal.warning
.elexis-modal-icon {
    background: #FFFAEB;
    color: #F79009;
}

.elexis-modal.warning
.elexis-modal-button {
    background: #F79009;
}


/* INFO */

.elexis-modal.info
.elexis-modal-icon {
    background: #EEF4FF;
    color: #1E2A78;
}

.elexis-modal.info
.elexis-modal-button {
    background: #1E2A78;
}


/* CONFIRM */

.elexis-modal.confirm
.elexis-modal-icon {
    background: #EEF0FF;
    color: #6D5DFB;
}

.elexis-modal.confirm
.elexis-modal-button {
    background: #1E2A78;
}


/* SECONDARY BUTTON */

.elexis-modal-cancel {
    width: 100%;

    border: 1px solid #E5E7EB;

    background: #FFFFFF;

    color: #475467;

    border-radius: 10px;

    padding: 12px 18px;

    margin-top: 9px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;
}

.elexis-modal-cancel:hover {
    background: #F9FAFB;
}


/* MOBILE */

@media (max-width: 480px) {

    .elexis-modal {
        padding: 24px 20px;
        border-radius: 15px;
    }

    .elexis-modal-title {
        font-size: 18px;
    }

}
































.organisation {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.organisation-logo {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.organisation-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.organisation-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 24px;
}

.organisation-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.organisation-details span {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.organisation-details strong {
    font-size: 17px;
    font-weight: 750;
    color: #172033;
}

@media (max-width: 600px) {

    .organisation-logo {
        width: 50px;
        height: 50px;
    }

    .organisation-details strong {
        font-size: 15px;
    }

}




















.institution-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.institution-logo {
    width: 100px;
    height: 100px;

    margin: 0 auto 14px auto;

    border-radius: 14px;

    background: #FFFFFF;

    border: 1px solid #E5E7EB;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    flex-shrink: 0;
}

.institution-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 0;
}


.institution-logo-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #98A2B3;
    background: #F6F7FB;
    font-size: 30px;
}

.institution-name {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.institution-name strong {
    display: block;
    width: 100%;
    color: #11183F;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
}

.institution-name span {
    display: block;
    width: 100%;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}






.observer-login-button {
    width: 100%;
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 12px 16px;

    background: #F6F7FB;

    border: 1px solid #E5E7EB;

    border-radius: 10px;

    color: #1E2A78;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.observer-login-button i:first-child {
    font-size: 15px;
}

.observer-login-button i:last-child {
    font-size: 13px;
    margin-left: 2px;
}

.observer-login-button:hover {
    background: #EEF0FF;

    border-color: #D9DCFF;

    color: #11183F;

    transform: translateY(-1px);
}








.action-card.voting {
    border: 2px solid #00B8A9;

    box-shadow:
        0 0 0 3px rgba(0, 184, 169, 0.10),
        0 8px 24px rgba(17, 24, 63, 0.08);

    position: relative;
}

.action-card.voting:hover {
    border-color: #008F84;

    box-shadow:
        0 0 0 4px rgba(0, 184, 169, 0.14),
        0 12px 28px rgba(17, 24, 63, 0.14);

    transform: translateY(-2px);
}






























/* =========================================================
   ADMIN LOGIN
========================================================= */

.admin-login-page {
    min-height: calc(100vh - 72px);
    background: var(--background, #F6F7FB);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 30px;
}

.admin-login-container {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 70px;
    align-items: center;
}


/* =========================================================
   LEFT INTRODUCTION
========================================================= */

.admin-login-intro {
    padding: 20px 0;
}

.admin-login-intro .system-label {
    margin-bottom: 20px;
}

.admin-login-intro h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -2.5px;
    color: #11183F;
    font-weight: 800;
}

.admin-login-intro h1 span {
    color: #1E2A78;
}

.admin-login-intro > p {
    max-width: 560px;
    margin: 24px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   ORGANISATION MINI CARD
========================================================= */

.organisation-mini {
    margin-top: 35px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 17px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(17, 24, 63, 0.05);
}

.organisation-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #EEF0FF;
    color: #1E2A78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.organisation-mini span {
    display: block;
    color: #98A2B3;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.organisation-mini strong {
    display: block;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.admin-login-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 35px;
    box-shadow:
        0 20px 50px rgba(17, 24, 63, 0.08);
}


/* =========================================================
   INSTITUTION LOGO
========================================================= */

.admin-login-card .institution-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-card .institution-logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 13px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-login-card .institution-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 4px;
}

.admin-login-card .institution-logo-placeholder {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #98A2B3;
    font-size: 30px;
}

.admin-login-card .institution-name strong {
    color: #172033;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   LOGIN HEADER
========================================================= */

.login-header {
    margin-bottom: 25px;
}

.login-header h2 {
    margin: 0 0 7px;
    color: #11183F;
    font-size: 23px;
    font-weight: 800;
}

.login-header p {
    margin: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.login-error {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 9px;
    background: #FEF3F2;
    border: 1px solid #FECDCA;
    color: #B42318;
    font-size: 12px;
    font-weight: 600;
}

.login-error i {
    font-size: 15px;
}


/* =========================================================
   FORM
========================================================= */

.admin-login-form .form-group {
    margin-bottom: 18px;
}

.admin-login-form label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98A2B3;
    font-size: 16px;
    pointer-events: none;
}

.admin-login-form .form-control {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid #D0D5DD;
    border-radius: 9px;
    background: #FFFFFF;
    color: #172033;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.admin-login-form .form-control::placeholder {
    color: #98A2B3;
}

.admin-login-form .form-control:focus {
    border-color: #6D5DFB;
    box-shadow: 0 0 0 3px rgba(109, 93, 251, 0.10);
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.admin-login-button {
    width: 100%;
    height: 49px;
    margin-top: 5px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        #1E2A78 0%,
        #6D5DFB 100%
    );
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-login-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 20px rgba(30, 42, 120, 0.20);
}

.admin-login-button i:last-child {
    margin-left: 3px;
}


/* =========================================================
   SECURITY NOTICE
========================================================= */

.login-security {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #EAECF0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #98A2B3;
    font-size: 10px;
    font-weight: 600;
}

.login-security i {
    color: #12B76A;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .admin-login-page {
        padding: 40px 20px;
    }

    .admin-login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 30px;
    }

    .admin-login-intro {
        text-align: center;
    }

    .admin-login-intro .system-label {
        justify-content: center;
    }

    .admin-login-intro h1 {
        font-size: 44px;
    }

    .admin-login-intro > p {
        margin-left: auto;
        margin-right: auto;
    }

    .organisation-mini {
        margin-top: 25px;
    }

}


@media (max-width: 500px) {

    .admin-login-page {
        padding: 30px 15px;
    }

    .admin-login-intro h1 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .admin-login-intro > p {
        font-size: 13px;
    }

    .admin-login-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .admin-login-card .institution-logo {
        width: 80px;
        height: 80px;
    }

}











/* =========================================================
   ELEXIS COLLAPSIBLE SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 250px;

    background: linear-gradient(
        180deg,
        #11183F 0%,
        #1E2A78 100%
    );

    color: #fff;

    padding: 25px 18px;

    z-index: 1000;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}


/* BRAND */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px 25px;

    border-bottom: 1px solid rgba(255,255,255,.12);
}

.sidebar-brand img {
    width: 40px;
    height: 40px;

    object-fit: contain;

    flex-shrink: 0;
}

.sidebar-brand strong {
    display: block;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: .3px;
}

.sidebar-brand span {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: rgba(255,255,255,.65);
}


/* NAVIGATION */

.sidebar-menu {
    margin-top: 20px;
}


/* NORMAL LINK */

.sidebar-link {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 11px 13px;

    margin-bottom: 4px;

    color: rgba(255,255,255,.72);

    text-decoration: none;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 500;

    transition: .2s ease;
}

.sidebar-link i {
    width: 20px;

    font-size: 17px;

    text-align: center;

    flex-shrink: 0;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;

    background: rgba(255,255,255,.10);
}

.sidebar-link.active {
    box-shadow:
        inset 3px 0 0 #00B8A9;
}


/* =========================================================
   DROPDOWN BUTTON
   ========================================================= */

.sidebar-dropdown {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 11px 13px;

    margin-bottom: 4px;

    border: none;

    border-radius: 9px;

    background: transparent;

    color: rgba(255,255,255,.72);

    font-family: inherit;

    font-size: 13px;

    font-weight: 500;

    cursor: pointer;

    text-align: left;

    transition: .2s ease;
}

.sidebar-dropdown:hover {
    color: #fff;

    background: rgba(255,255,255,.08);
}


/* LEFT SIDE OF DROPDOWN */

.sidebar-dropdown-left {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.sidebar-dropdown-left > i {
    width: 20px;

    font-size: 17px;

    text-align: center;

    flex-shrink: 0;
}


/* ARROW */

.dropdown-arrow {
    font-size: 11px;

    opacity: .65;

    transition: transform .2s ease;

    flex-shrink: 0;
}


/* =========================================================
   SUBMENU
   ========================================================= */

.sidebar-submenu {
    display: none;

    margin: 0 0 6px 16px;

    padding-left: 16px;

    border-left: 1px solid rgba(255,255,255,.12);
}

.sidebar-group.open .sidebar-submenu {
    display: block;
}

.sidebar-group.open .dropdown-arrow {
    transform: rotate(180deg);
}


/* SUBMENU LINKS */

.sidebar-submenu a {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 10px;

    margin-bottom: 2px;

    color: rgba(255,255,255,.58);

    text-decoration: none;

    border-radius: 7px;

    font-size: 12px;

    transition: .2s ease;
}

.sidebar-submenu a i {
    width: 17px;

    font-size: 14px;

    text-align: center;
}

.sidebar-submenu a:hover {
    color: #fff;

    background: rgba(255,255,255,.07);
}


/* ACTIVE SUBMENU */

.sidebar-submenu a.active {
    color: #fff;

    background: rgba(0,184,169,.10);

    box-shadow:
        inset 2px 0 0 #00B8A9;
}


/* SIGN OUT */

.sidebar-submenu .sidebar-signout {
    color: rgba(255,255,255,.58);
}

.sidebar-submenu .sidebar-signout:hover {
    color: #ff8f87;

    background: rgba(240,68,56,.08);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .sidebar {
        width: 70px;

        padding: 20px 10px;
    }

    .sidebar-brand {
        justify-content: center;

        padding-left: 0;
        padding-right: 0;

        border-bottom: none;
    }

    .sidebar-brand > div {
        display: none;
    }

    .sidebar-link span,
    .sidebar-dropdown-left > span {
        display: none;
    }

    .sidebar-link,
    .sidebar-dropdown {
        justify-content: center;

        padding: 13px 8px;
    }

    .sidebar-dropdown-left {
        justify-content: center;
    }

    .dropdown-arrow {
        display: none;
    }

    .sidebar-submenu {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .sidebar-submenu a {
        justify-content: center;
        padding: 10px 5px;
    }

    .sidebar-submenu a span {
        display: none;
    }

    .sidebar-submenu a i {
        width: auto;
    }
}


.gradient-text {
    background: linear-gradient(
        90deg,
        #1E2A78 0%,
        #4F46B8 45%,
        #6D5DFB 75%,
        #8B7CFF 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


