/********** Template CSS **********/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


img.animated.pulse {
    animation-duration: 5s;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: var(--bs-white);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 11px 0 !important;
    height: 85px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 45px;
    padding: 0;
    color: var(--bs-dark);
    font-weight: 500;
    transition: .5s;
    outline: none;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--bs-light);
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 38px;
        max-width: 150px;
    }
}

.navbar .dropdown-toggle {
    border: none;
    outline: none;
    box-shadow: none;
}

.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:active {
    border: none;
    outline: none;
    box-shadow: none;
}

.dropdown-menu {
    border: none;
    border-radius: 0;
}

.campaign-banner {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto 35px;

    overflow: hidden;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);
}

.campaign-banner img {
    display: block;

    width: 100%;
    height: 420px;

    object-fit: fit;
    object-position: center;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--bs-body);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 3px solid var(--bs-light);
}

.footer .copyright a {
    color: var(--bs-body);
}

.footer .copyright a:hover {
    color: var(--bs-primary);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 3px solid var(--bs-light);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.content .intro {
    font-size: 18px;
    color: #666;
    margin-bottom: 35px;
}

.content h2 {
    font-size: 25px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #333;
}

.content p strong {
    color: #222;
}


.poll-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18);
}


/* HEADER */

.poll-header {
    padding: 24px 28px;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;
}

.poll-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;

    color: #0d6efd;

    margin-bottom: 5px;
}

.poll-header .modal-title {
    font-size: 23px;
}

.poll-header-subtitle {
    color: #777;
    font-size: 14px;

    margin-top: 4px;
}


/* PROGRESS */

.poll-progress-wrapper {
    padding: 15px 28px 10px;

    background: #fafafa;
}

.poll-progress-top {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;
}

.poll-progress {
    height: 6px;

    border-radius: 20px;

    background: #e9ecef;
}

.poll-progress .progress-bar {
    border-radius: 20px;

    transition: width 0.3s ease;
}


/* BODY */

.poll-body {
    padding: 30px;
}


/* STEP HEADING */

.step-heading {
    display: flex;
    align-items: center;

    gap: 14px;
}

.step-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eef4ff;

    font-size: 20px;
}


/* SELECT */

.poll-select {
    min-height: 52px;

    border-radius: 10px;
}

.poll-select:focus {
    border-color: #86b7fe;

    box-shadow:
        0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}


/* LEADER LIST */

.leader-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}


/* Leader cards generated by JS */

.leader-list .list-group-item {
    border: 1px solid #e5e7eb;

    border-radius: 12px !important;

    padding: 15px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.leader-list .list-group-item:hover {
    border-color: #86b7fe;

    background: #f8fbff;

    transform: translateY(-1px);
}


/* SELECTED LEADER */

.selected-leader-box {
    padding: 15px 18px;

    border-radius: 12px;

    background: #f0f6ff;

    border: 1px solid #d6e7ff;
}

.selected-leader-box .small {
    font-size: 10px;

    letter-spacing: 1px;

    font-weight: 700;
}


/* TEXTAREA */

.poll-textarea {
    border-radius: 10px;

    resize: vertical;

    min-height: 130px;
}

.poll-textarea:focus {
    border-color: #86b7fe;

    box-shadow:
        0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}


/* FOOTER */

.poll-footer {
    padding: 18px 28px;

    background: #fafafa;

    border-top: 1px solid #eeeeee;
}

.poll-footer .btn {
    min-width: 110px;

    border-radius: 9px;

    font-weight: 600;
}


/* SUCCESS */

.success-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #d1e7dd;

    color: #198754;

    font-size: 40px;
    font-weight: 700;
}


/* MOBILE */

@media (max-width: 767px) {

    .modal-dialog {
        margin: 10px;
    }

    .poll-header {
        padding: 20px;
    }

    .poll-header .modal-title {
        font-size: 19px;
    }

    .poll-header-subtitle {
        font-size: 13px;
    }

    .poll-progress-wrapper {
        padding: 12px 20px 8px;
    }

    .poll-body {
        padding: 22px 20px;
    }

    .poll-footer {
        padding: 15px 20px;
    }

    .leader-list {
        grid-template-columns: 1fr;
    }

    .step-heading {
        align-items: flex-start;
    }

}

 .profile-container {
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        background: #ffffff;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
        min-height: 600px;
    }

    /* LEFT - 30% */
    .profile-sidebar {
        width: 30%;
        background: linear-gradient(
            160deg,
            #0b2d4d,
            #123f68
        );
        color: #ffffff;
        padding: 40px 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* RIGHT - 70% */
    .about-section {
        width: 70%;
        padding: 45px;
        background: #ffffff;
    }

    .about-title {
        margin: 0 0 25px;
        color: #12355b;
        font-size: 28px;
        font-weight: 700;
        padding-bottom: 15px;
        border-bottom: 3px solid #e5edf5;
    }

    .about-content {
        font-size: 17px;
        line-height: 1.8;
        color: #4b5563;
        white-space: pre-line;
    }

    /* PHOTO */
    .leader-photo {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        border: 6px solid rgba(255, 255, 255, 0.85);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
        margin-bottom: 22px;
    }

    .photo-placeholder {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        border: 6px solid rgba(255, 255, 255, 0.85);
        background: #1d527e;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 22px;
        font-size: 65px;
        font-weight: bold;
        color: #ffffff;
    }

    .leader-name {
        margin: 0 0 25px;
        font-size: 27px;
        line-height: 1.25;
        font-weight: 700;
        color:white;
    }

    .leader-details {
        width: 100%;
        text-align: left;
    }

    .detail-item {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .detail-label {
        display: block;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #a9c8e3;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .detail-value {
        display: block;
        font-size: 16px;
        line-height: 1.5;
        color: #ffffff;
    }

    .social-link {
        display: inline-block;
        margin-top: 8px;
        padding: 9px 15px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
    }

    .social-link:hover {
        background: rgba(255, 255, 255, 0.22);
        color: #ffffff;
    }

    /* MOBILE */
    @media (max-width: 768px) {

        .profile-container {
            flex-direction: column;
        }

        .profile-sidebar {
            width: 100%;
            order: 1;
        }

        .about-section {
            width: 100%;
            order: 2;
        }
    }

.bg_dark_blue{
    color: white!important;
    background-color: #154b54!important;
}

/* ------------------------------------
   TOTAL VOTES CARD
------------------------------------ */

.total-vote-card {
    background: linear-gradient(
        135deg,
        #111827,
        #1f2937
    );

    color: white;

    border-radius: 20px;

    padding: 40px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    position: relative;

    overflow: hidden;
}

.total-vote-card::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(255,255,255,0.06);

    right: -50px;
    top: -50px;
}

.total-label {
    font-size: 15px;
    opacity: 0.75;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.total-number {
    font-size: 55px;

    font-weight: 800;

    margin-top: 8px;

    line-height: 1;
}


/* ------------------------------------
   SECTION CARD
------------------------------------ */

.dashboard-card {
    background: white;

    border-radius: 20px;

    padding: 30px;

    margin-top: 25px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 21px;

    font-weight: 700;

    margin-bottom: 25px;
}


/* ------------------------------------
   STATE VOTES
------------------------------------ */

.state-row {
    margin-bottom: 24px;
}

.state-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;
}

.state-name {
    font-weight: 600;

    color: #374151;
}

.state-count {
    font-size: 14px;

    color: #6b7280;
}

.progress {
    height: 13px;

    border-radius: 20px;

    background: #edf0f5;

    overflow: hidden;
}

.progress-bar {
    border-radius: 20px;

    background: linear-gradient(
        90deg,
        #2563eb,
        #7c3aed
    );

    transition: width 1s ease;
}


/* ------------------------------------
   TOP LEADER
------------------------------------ */

.leader-card {

    border-radius: 18px;

}

.leader-rank {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: #f59e0b;

    color: white;

    font-size: 20px;

    font-weight: 800;

    margin-bottom: 15px;
}

.leader-name {
    font-size: 28px;

    font-weight: 800;

    color: #111827;
}

.leader-votes {
    font-size: 17px;

    color: #6b7280;

    margin-top: 5px;
}

.profile-btn {
    display: inline-block;

    margin-top: 18px;

    padding: 10px 18px;

    border-radius: 10px;

    background: #111827;

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition: 0.2s;
}

.profile-btn:hover {
    background: #374151;

    color: white;

    transform: translateY(-2px);
}


/* ------------------------------------
   NO DATA
------------------------------------ */

.no-data {
    text-align: center;

    padding: 30px;

    color: #9ca3af;
}

.nnl-profile-banner {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.nnl-profile-banner-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 767.98px) {

    .nnl-profile-banner-image {
        height: 160px;
        object-position: center top;
    }

}

.nnl-page-background {
    min-height: 100vh;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.92),
            rgba(255, 255, 255, 0.92)
        ),
        url("{% static 'images/NNL.png' %}");

    background-size: 140px auto;
    background-repeat: repeat;
    background-position: center;
}
