:root {
    --primary-orange: #d25e00;
    --hover-orange: #b84a00;
    --bg-light: #f8fafc;
    --card-bg: #f2f5f9;
    --text-main: #1a1a1a;
    --text-muted: #949494;
    --border-color: #e2e8f0;
    --icon-blue: #283c80;
    --icon-bg: #eaefff;
    --light-orange: #f39c12;
    --utility-blue: #455ba8;
    --solar-orange: #f88e3a;
    --bg-gray: #f8f9fa;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100%;
    /* NEW */
    display: flex;
    /* NEW */
    flex-direction: column;
    /* NEW */
}

main {
    max-width: 1700px;
    margin: 0 auto;
    padding: 40px 60px;
    margin-top: 130px;
    flex: 1;
    /* NEW */
    width: 100%;
    /* NEW */
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #ffffff;
    box-shadow: 0px 0px 2px 0px rgba(94, 92, 92, 0.55);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.logo {
    width: 200px;
    height: 79px;
}
.header-icons {
    display: flex;
    gap: 60px;
    color: var(--icon-blue);
    position: relative;
}
.header-icons svg {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.header-icons svg:hover {
    transform: scale(1.1);
}


.toast-container {
    position: fixed;
    top: 150px;
    right: 40px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 400px;
    max-width: calc(100vw - 32px);
}

/* Toast */

.info-icon {
    font-size: 28px;
    color: #2d4373;
    display: flex;
    align-items: center;
}

.toast-notification {
    background: rgba(241, 245, 249, 1);
    border-radius: 8px;
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);
    padding: 10px;
    width: 100%;
    animation: slideIn 0.3s ease-out;
    font-family: "Montserrat", sans-serif;
}

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

.toast-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-title {
    font-weight: 500;
    font-size: 16px;
    color: var(--Main-bulma, rgba(0, 0, 0, 1));
}

.toast-body {
    padding-left: 38px;
    font-size: 14px;

    font-weight: 400;
    color: #161616;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    @keyframes slideIn {
        from {
            transform: translateY(-12px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

a {
    text-decoration: none;
}



/* ── Validation Styles ── */
input.input-error {
    border-color: #e21c1c !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-summary {
    display: none;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    color: #dc2626;
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
    line-height: 1.5;
}

.error-summary.visible {
    display: block;
}

.error-summary ul {
    margin: 0;
    padding-left: 16px;
}

.error-summary ul li {
    margin-bottom: 2px;
}


/* Overlay */
#custom-modal-overlay.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* Show Modal */
#custom-modal-overlay.modal-overlay.show {
    display: flex;
}

/* Card */
.modal-card {
    /*width: 100%;
    !*max-width: 420px;*!
    background: #f4f7f9;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: modalFade 0.2s ease;*/

    background: #f4f7f9;
    padding: 20px;
    border-radius: 20px;
    width: min(500px, calc(100vw - 32px));
    text-align: center;
}

#custom-modal-overlay {
    @keyframes modalFade {
        from {
            transform: translateY(10px);
            opacity: 0;
        }

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

    /* Icon */
    .icon-circle {
        background: #eaefff;
        color: #283c80;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 24px;
    }

    /* Title */
    .modal-card h2 {
        color: #1b2559;
        font-size: 20px;
        margin-bottom: 15px;
        font-weight: 600;
    }

    /* Text */
    .modal-card p {
        color: rgb(94,99,105);
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 30px;
        font-weight: 400;
    }

    /* Buttons */
    .modal-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .modal-actions button {
        border: none;
        border-radius: 12px;
        padding: 12px 20px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        min-width: 120px;
    }

    /* Cancel */
    .btn-cancel {
        background: #f4f7f9;
        color: #5e6369;
        border: 1px solid #d1d9e2;
    }

    /* Confirm */
    .btn-enable {
        background: #d35f00;
        color: #fff;
    }
}



a {
    text-decoration: none !important;
}
footer {
    background: rgb(241, 245, 249);
    border-top: 1px solid var(--border-color);
    padding: 40px 60px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.auth-logout-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
}
.auth-logout-container {
    background-color: #f1f5f9;
    width: min(460px, calc(100vw - 32px));
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.auth-logout-icon-circle {
    background-color: #e0e7ff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    flex-shrink: 0;
}
.auth-logout-icon-circle i {
    color: #283c80;
    font-size: 28px;
}
.auth-logout-title {
    color: #111;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.auth-logout-text {
    color: #5e6369;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 24px;
}
.auth-logout-actions {
    display: flex;
    gap: 12px;
}
.auth-btn-cancel,
.auth-btn-confirm {
    flex: 1;
    padding: 13px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.25s ease;
    font-family: "Montserrat", sans-serif;
    min-height: 48px;
}
.auth-btn-cancel {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
}
.auth-btn-confirm {
    background: #d25e00;
    color: #ffffff;
}
.auth-btn-confirm:hover {
    background-color: #b84a00;
}
.auth-btn-cancel:hover {
    background-color: #e2e8f0;
}
.auth-logout-backdrop.is-visible {
    display: flex;
}
