/* =========================================================
   POLLING PARTY CHECKLIST - 2026
   Complete Responsive Style Sheet
   Login + Dashboard + Checklist
========================================================= */


/* =========================================================
   FONT / BASE
========================================================= */

html,
body,
button,
input,
select,
textarea {
    font-family:
        "Noto Sans Devanagari",
        "Nirmala UI",
        "Mangal",
        Arial,
        sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f6fa;
    color: #172033;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   COMMON ALERTS
========================================================= */

.alert {
    border-radius: 9px;
    padding: 12px 15px;
    font-size: 15px;
    margin-bottom: 15px;
}

.alert.success {
    background: #eaf8ef;
    border: 1px solid #a8dfb8;
    color: #176b35;
}

.alert.error {
    background: #fff0f0;
    border: 1px solid #efb1b1;
    color: #a51e22;
}


/* =========================================================
   =========================================================
   LOGIN PAGE
   =========================================================
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;

    background:
        linear-gradient(
            135deg,
            #edf4fc 0%,
            #f7f9fc 50%,
            #eaf2fb 100%
        );

    display: flex;
    flex-direction: column;
}


/* =========================================================
   LOGIN HEADER
========================================================= */

.login-header {
    background:
        linear-gradient(
            135deg,
            #073b7a,
            #0b5cad
        );

    color: #ffffff;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.18);
}

.login-header-inner {
    width: 100%;
    max-width: 1150px;

    margin: auto;

    min-height: 105px;

    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.login-logo {
    width: 80px;
    min-width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    max-width: 75px;
    max-height: 75px;

    width: auto;
    height: auto;

    object-fit: contain;
}

.login-header-title {
    flex: 1;
    text-align: center;
}

.login-election-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
}

.login-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-top: 2px;
}

.login-english {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-top: 3px;
}


/* =========================================================
   LOGIN MAIN
========================================================= */

.login-main {
    flex: 1;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 35px 15px 45px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: 100%;
    max-width: 500px;

    background: #ffffff;

    border: 1px solid #dce4ee;

    border-radius: 16px;

    box-shadow:
        0 8px 30px rgba(22, 45, 75, 0.12);

    padding: 25px;
}


/* =========================================================
   LOGIN CARD HEADER
========================================================= */

.login-card-header {
    display: flex;
    align-items: center;

    gap: 14px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e6ebf1;
}

.login-icon {
    width: 50px;
    min-width: 50px;
    height: 50px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #0b5cad,
            #073b7a
        );

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
    font-weight: bold;
}

.login-card-header h1 {
    margin: 0;

    font-size: 22px;

    color: #073b7a;
}

.login-card-header p {
    margin: 0;

    font-family: Arial, sans-serif;

    font-size: 12px;

    color: #738095;
}


/* =========================================================
   LOGIN INTRO
========================================================= */

.login-intro {
    padding: 17px 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.login-intro strong {
    color: #26364d;
    font-size: 16px;
}

.login-intro span {
    color: #758195;

    font-family: Arial, sans-serif;

    font-size: 12px;
}


/* =========================================================
   LOGIN FORM
========================================================= */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    color: #26364d;

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 7px;
}

.form-group label span {
    display: block;

    color: #758195;

    font-size: 12px;

    font-weight: 400;

    margin-top: 1px;
}

.form-group input {
    width: 100%;

    height: 54px;

    padding: 10px 14px;

    border: 1.5px solid #cbd6e4;

    border-radius: 9px;

    background: #ffffff;

    color: #172033;

    font-size: 17px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9aa6b5;

    font-family: Arial, sans-serif;

    font-size: 14px;
}

.form-group input:focus {
    border-color: #0b5cad;

    box-shadow:
        0 0 0 3px rgba(11, 92, 173, 0.12);
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-submit {
    width: 100%;

    min-height: 55px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #0b5cad,
            #073b7a
        );

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 5px;

    box-shadow:
        0 4px 10px rgba(7, 59, 122, 0.20);

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.login-submit:hover {
    filter: brightness(1.08);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-button-icon {
    font-family: Arial, sans-serif;
    font-size: 22px;
}


/* =========================================================
   LOGIN SECURITY
========================================================= */

.login-security {
    display: flex;

    gap: 11px;

    margin-top: 20px;

    padding: 13px;

    border-radius: 9px;

    background: #f2f7fd;

    border: 1px solid #dbe8f6;
}

.security-icon {
    font-size: 20px;

    flex: 0 0 auto;
}

.login-security strong {
    display: block;

    color: #174a7e;

    font-size: 14px;
}

.login-security p {
    margin: 2px 0 0;

    color: #68778b;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   LOGIN ROLES
========================================================= */

.roles-box {
    margin-top: 18px;

    padding-top: 16px;

    border-top: 1px solid #e6ebf1;
}

.roles-title {
    text-align: center;

    color: #758195;

    font-family: Arial, sans-serif;

    font-size: 11px;

    margin-bottom: 8px;
}

.roles {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;
}

.roles span {
    background: #eef5ff;

    border: 1px solid #d4e4f7;

    color: #174a7e;

    border-radius: 20px;

    padding: 4px 10px;

    font-family: Arial, sans-serif;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   LOGIN HELP
========================================================= */

.login-help {
    width: 100%;
    max-width: 500px;

    text-align: center;

    margin-top: 18px;

    color: #758195;

    font-size: 12px;

    line-height: 1.7;
}

.login-help strong {
    color: #526176;
}


/* =========================================================
   LOGIN FOOTER
========================================================= */

.login-footer {
    background: #ffffff;

    border-top: 1px solid #dfe5ec;

    text-align: center;

    color: #758195;

    padding: 15px 10px;

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   =========================================================
   DASHBOARD
   =========================================================
   ========================================================= */


/* =========================================================
   TOP HEADER
========================================================= */

.topbar {
    background:
        linear-gradient(
            135deg,
            #073b7a,
            #0b5cad
        );

    color: #ffffff;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.15);

    position: sticky;

    top: 0;

    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.header-logo {
    width: 70px;
    min-width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    max-width: 68px;
    max-height: 68px;

    width: auto;
    height: auto;

    object-fit: contain;
}

.header-title {
    text-align: center;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
}

.main-title {
    font-size: 22px;

    font-weight: 700;

    line-height: 1.35;
}

.sub-title {
    font-size: 18px;

    font-weight: 600;

    margin-top: 2px;
}

.english-title {
    font-family: Arial, sans-serif;

    font-size: 12px;

    opacity: 0.85;

    margin-top: 1px;
}


/* =========================================================
   DASHBOARD PAGE
========================================================= */

.page-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 25px 20px 50px;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.page-heading h1 {
    margin: 0;

    font-size: 27px;

    color: #073b7a;

    line-height: 1.35;
}

.page-heading p {
    margin: 5px 0 0;

    color: #687386;

    font-size: 15px;
}


/* =========================================================
   LOGOUT
========================================================= */

.logout-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 8px 18px;

    border-radius: 8px;

    background: #ffffff;

    border: 1px solid #d5dce6;

    color: #b42318;

    text-decoration: none;

    font-weight: 600;

    white-space: nowrap;
}

.logout-button:hover {
    background: #fff4f2;
}


/* =========================================================
   EMPLOYEE CARD
========================================================= */

.employee-card {
    background: #ffffff;

    border-radius: 14px;

    border: 1px solid #e0e6ee;

    box-shadow:
        0 3px 12px rgba(22, 45, 75, 0.07);

    margin-bottom: 18px;

    overflow: hidden;
}

.employee-card-header {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 18px;

    background: #eef5ff;

    border-bottom: 1px solid #dbe8f8;
}

.employee-icon {
    width: 42px;
    min-width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #0b5cad;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.employee-card-header h2 {
    margin: 0;

    font-size: 19px;

    color: #073b7a;
}

.employee-card-header span {
    font-family: Arial, sans-serif;

    font-size: 11px;

    color: #65758b;
}

.employee-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 0;
}

.employee-field {
    padding: 13px 16px;

    border-right: 1px solid #edf0f4;

    border-bottom: 1px solid #edf0f4;

    min-width: 0;
}

.employee-field-wide {
    grid-column: span 4;
}

.field-label {
    display: block;

    color: #6a7688;

    font-size: 13px;

    margin-bottom: 2px;
}

.employee-field strong {
    display: block;

    color: #172033;

    font-size: 16px;

    font-weight: 600;

    overflow-wrap: anywhere;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-card {
    background: white;

    border-radius: 14px;

    padding: 17px 20px;

    border: 1px solid #e0e6ee;

    box-shadow:
        0 3px 12px rgba(22, 45, 75, 0.06);

    margin-bottom: 18px;
}

.progress-header {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.progress-header h3 {
    margin: 0;

    color: #073b7a;

    font-size: 18px;
}

.progress-header span {
    color: #758195;

    font-size: 12px;
}

.progress-number {
    font-size: 25px;

    font-weight: 700;

    color: #0b5cad;
}

.progress-number span {
    font-size: 15px;
}

.progress-bar {
    height: 9px;

    background: #e7edf5;

    border-radius: 10px;

    overflow: hidden;

    margin-top: 10px;
}

.progress-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #0b5cad,
            #18a05e
        );

    border-radius: 10px;

    transition: width 0.4s ease;
}

.progress-text {
    margin-top: 5px;

    font-size: 13px;

    color: #687386;
}


/* =========================================================
   SECTION SELECTOR
========================================================= */

.section-selector-card {
    background: white;

    border-radius: 14px;

    padding: 20px;

    border: 1px solid #dce4ee;

    box-shadow:
        0 4px 15px rgba(22, 45, 75, 0.07);

    margin-bottom: 20px;
}

.section-label {
    display: block;

    font-size: 18px;

    font-weight: 700;

    color: #073b7a;

    margin-bottom: 0;
}

.section-label-en {
    font-family: Arial, sans-serif;

    font-size: 12px;

    color: #758195;

    margin-bottom: 8px;
}

.section-select {
    width: 100%;

    min-height: 52px;

    padding: 8px 45px 8px 14px;

    border: 2px solid #c9d5e5;

    border-radius: 9px;

    background: #ffffff;

    color: #172033;

    font-size: 17px;

    font-weight: 500;

    outline: none;

    cursor: pointer;
}

.section-select:focus {
    border-color: #0b5cad;

    box-shadow:
        0 0 0 3px rgba(11, 92, 173, 0.12);
}


/* =========================================================
   CHECKLIST CONTAINER
========================================================= */

.checklist-container {
    width: 100%;
}


/* =========================================================
   CHECKLIST CARD
========================================================= */

.checklist-card {
    background: #ffffff;

    border: 1px solid #dce4ee;

    border-radius: 14px;

    box-shadow:
        0 4px 15px rgba(22, 45, 75, 0.07);

    overflow: hidden;
}


/* =========================================================
   CHECKLIST HEADER
========================================================= */

.checklist-header {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 18px 20px;

    background:
        linear-gradient(
            135deg,
            #eef5ff,
            #f7faff
        );

    border-bottom: 1px solid #dbe8f8;
}

.checklist-section-number {
    width: 48px;
    min-width: 48px;
    height: 48px;

    border-radius: 10px;

    background: #0b5cad;

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;

    font-size: 14px;

    font-weight: 700;
}

.checklist-header h2 {
    margin: 0;

    color: #073b7a;

    font-size: 21px;

    line-height: 1.45;
}

.checklist-count {
    color: #758195;

    font-family: Arial, sans-serif;

    font-size: 11px;

    margin-top: 2px;
}


/* =========================================================
   CHECKLIST LIST
========================================================= */

.checklist-list {
    width: 100%;
}


/* =========================================================
   INDIVIDUAL CHECKLIST ITEM
========================================================= */

.checklist-item {
    display: flex;

    align-items: flex-start;

    width: 100%;

    padding: 17px 20px;

    margin: 0;

    border-bottom: 1px solid #e7ebf0;

    background: #ffffff;

    cursor: pointer;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background: #f7faff;
}


/* =========================================================
   CHECKBOX
========================================================= */

.checklist-item input[type="checkbox"] {
    width: 24px;

    min-width: 24px;

    height: 24px;

    margin: 3px 14px 0 0;

    accent-color: #0b5cad;

    cursor: pointer;
}


/* =========================================================
   CHECKLIST CONTENT
========================================================= */

.checklist-content {
    display: flex;

    align-items: flex-start;

    width: 100%;

    gap: 10px;
}

.item-number {
    min-width: 27px;

    color: #0b5cad;

    font-family: Arial, sans-serif;

    font-size: 15px;

    font-weight: 700;

    padding-top: 1px;
}

.item-details {
    flex: 1;

    min-width: 0;
}

.item-text {
    color: #172033;

    font-size: 17px;

    font-weight: 500;

    line-height: 1.75;
}

.responsible-cell {
    display: block;

    margin-top: 5px;

    color: #65758b;

    font-size: 13px;

    line-height: 1.55;
}

.responsible-cell strong {
    color: #526176;
}


/* =========================================================
   CHECKED ITEM
========================================================= */

.checklist-item:has(
    input[type="checkbox"]:checked
) {
    background: #f0f8f3;
}

.checklist-item:has(
    input[type="checkbox"]:checked
) .item-text {
    color: #245d3a;
}


/* =========================================================
   SUBMIT AREA
========================================================= */

.submit-area {
    padding: 18px 20px;

    background: #fafbfd;

    border-top: 1px solid #e3e8ee;
}

.submit-button,
#checklist button[type="submit"] {
    width: 100%;

    min-height: 54px;

    padding: 10px 18px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #0b5cad,
            #073b7a
        );

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(7, 59, 122, 0.16);

    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}

.submit-button:hover,
#checklist button[type="submit"]:hover {
    filter: brightness(1.08);
}

.submit-button:active,
#checklist button[type="submit"]:active {
    transform: translateY(1px);
}

.submit-button:disabled,
#checklist button[type="submit"]:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


/* =========================================================
   EMPTY CHECKLIST
========================================================= */

.empty-checklist {
    background: white;

    border: 1px dashed #bdc9d8;

    border-radius: 14px;

    padding: 45px 20px;

    text-align: center;

    color: #65758b;
}

.empty-icon {
    font-size: 45px;

    color: #0b5cad;

    margin-bottom: 8px;
}

.empty-checklist h3 {
    margin: 0;

    color: #26364d;

    font-size: 19px;
}

.empty-checklist p {
    margin: 5px 0 0;

    font-size: 14px;
}


/* =========================================================
   LOADING
========================================================= */

.loading-box {
    background: white;

    border-radius: 14px;

    padding: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: #0b5cad;

    font-weight: 600;
}

.loading-spinner {
    width: 25px;
    height: 25px;

    border: 3px solid #d9e6f5;

    border-top-color: #0b5cad;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    text-align: center;

    padding: 20px;

    color: #758195;

    font-size: 12px;

    background: #ffffff;

    border-top: 1px solid #e1e6ed;
}


/* =========================================================
   =========================================================
   TABLET
   =========================================================
   ========================================================= */

@media (max-width: 800px) {

    .employee-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .employee-field-wide {
        grid-column: span 2;
    }

}


/* =========================================================
   =========================================================
   MOBILE
   =========================================================
   ========================================================= */

@media (max-width: 600px) {


    /* ---------- LOGIN ---------- */

    .login-header-inner {
        min-height: 80px;

        padding: 8px 10px;

        gap: 7px;
    }

    .login-logo {
        width: 48px;
        min-width: 48px;
        height: 58px;
    }

    .login-logo img {
        max-width: 46px;
        max-height: 52px;
    }

    .login-election-title {
        font-size: 15px;

        line-height: 1.35;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .login-english {
        display: none;
    }

    .login-main {
        padding: 18px 10px 30px;
    }

    .login-card {
        padding: 18px 15px;

        border-radius: 12px;
    }

    .login-card-header h1 {
        font-size: 20px;
    }

    .login-intro {
        padding: 14px 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input {
        height: 55px;

        font-size: 17px;
    }

    .login-submit {
        min-height: 55px;
    }

    .login-security {
        padding: 11px;
    }

    .login-help {
        padding: 0 10px;
    }


    /* ---------- DASHBOARD ---------- */

    .topbar {
        position: relative;
    }

    .header-inner {
        min-height: 72px;

        padding: 8px 10px;

        gap: 8px;
    }

.header-logo {
    width: 45px;
    min-width: 45px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.header-logo img {
    max-width: 45px;
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
}

    .main-title {
        font-size: 15px;

        line-height: 1.35;
    }

    .sub-title {
        font-size: 14px;
    }

    .english-title {
        display: none;
    }

    .page-container {
        padding: 15px 10px 35px;
    }

    .page-heading {
        align-items: flex-start;

        margin-bottom: 14px;
    }

    .page-heading h1 {
        font-size: 21px;
    }

    .page-heading p {
        font-size: 13px;
    }

    .logout-button {
        min-height: 38px;

        padding: 6px 11px;

        font-size: 13px;
    }


    /* ---------- EMPLOYEE ---------- */

    .employee-card,
    .progress-card,
    .section-selector-card,
    .checklist-card {
        border-radius: 11px;
    }

    .employee-card-header {
        padding: 12px;
    }

    .employee-grid {
        display: block;
    }

    .employee-field,
    .employee-field-wide {
        display: flex;

        justify-content: space-between;

        align-items: flex-start;

        gap: 10px;

        padding: 10px 12px;

        border-right: none;
    }

    .field-label {
        flex: 0 0 42%;

        font-size: 12px;
    }

    .employee-field strong {
        flex: 1;

        text-align: right;

        font-size: 14px;
    }


    /* ---------- SECTION ---------- */

    .section-selector-card {
        padding: 14px;
    }

    .section-label {
        font-size: 17px;
    }

    .section-select {
        min-height: 54px;

        font-size: 16px;
    }


    /* ---------- CHECKLIST ---------- */

    .checklist-header {
        padding: 14px;
        gap: 10px;
    }

    .checklist-section-number {
        width: 42px;
        min-width: 42px;
        height: 42px;

        border-radius: 8px;

        font-size: 12px;
    }

    .checklist-header h2 {
        font-size: 17px;

        line-height: 1.5;
    }

    .checklist-item {
        padding: 14px 11px;
    }

    .checklist-item input[type="checkbox"] {
        width: 24px;
        min-width: 24px;

        height: 24px;

        margin-right: 10px;
    }

    .checklist-content {
        gap: 6px;
    }

    .item-number {
        min-width: 22px;

        font-size: 13px;
    }

    .item-text {
        font-size: 16px;

        line-height: 1.75;
    }

    .responsible-cell {
        font-size: 12px;

        line-height: 1.6;
    }

    .submit-area {
        padding: 13px 11px;
    }

    .submit-button,
    #checklist button[type="submit"] {
        min-height: 54px;

        font-size: 16px;
    }


    /* ---------- EMPTY ---------- */

    .empty-checklist {
        padding: 35px 15px;
    }


    /* ---------- FOOTER ---------- */

    .footer {
        padding: 15px 10px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .login-election-title {
        font-size: 13px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .login-logo {
        width: 40px;
        min-width: 40px;
    }

    .login-logo img {
        max-width: 38px;
        max-height: 45px;
    }

    .login-card {
        padding: 16px 12px;
    }

    .main-title {
        font-size: 13px;
    }

    .sub-title {
        font-size: 12px;
    }

    .header-logo {
        width: 38px;
        min-width: 38px;
    }

    .header-logo img {
        max-width: 38px;
        max-height: 42px;
    }

    .page-heading h1 {
        font-size: 19px;
    }

    .item-text {
        font-size: 15px;
    }

}