﻿
:root {
    /*fonts*/
    --large-font-size: 16px;
    --normal-font-size: 14px;
    --small-font-size: 12px;
    --font-family: "Open Sans", Arial, Helvetica, sans-serif;
    --font-family2: "Roboto", Arial, Helvetica, sans-serif;
    /*colors*/
    --color-green: #10E5B1;
    --color-blue: #005FFF;
    --color-blue-hover: #0056b3;
    --color-orange: #F15A24;
    --color-orange-hover: #d44f20;
    --color-red: #DE0000;
    --color-red-hover: #c82333;
    --color-gray: #cccccc;
    --color-light-gray: #F2F2F2;
    --color-navy: #0B1556;
    --theme-dark-gray: rgba(255, 255, 255, 0.5);
    --theme-dark-gray2: #291F2CCC;
    --theme-dark-red: #C52034;
    --color-white: #FFFFFF;
    /* used colors by items */
    --theme-bg-btn: var(--color-navy);
    --theme-bg-top-event-name: rgba(14, 56, 105, 1);
    --theme-start-icon-fill: rgba(11, 21, 86, 0.6);
    --theme-btn-submit-bg: var(--color-green);
    --theme-btn-submit-bg-hover: var(--color-green);
    --theme-btn-submit-color: var(--color-navy);
    --theme-btn-lookup-color: var(--color-white);
    --theme-btn-lookup-bg: var(--color-navy);
    --theme-lookup-icon-fill: var(--color-green);
    --theme-btn-new-reg-color: var(--color-blue);
    --theme-btn-new-reg-bg: var(--color-white);
    --theme-new-reg-dashed-icon-fill: var(--color-navy);
    --theme-new-reg-plus-icon-fill: var(--color-navy);
    --theme-bg-multi-record-item: white;
    --theme-color-multi-record-item: var(--color-navy);
    --theme-btn-print-bg: var(--color-navy);
    --theme-btn-print-color: white;
    --theme-pop-up-bg: #0b1556e6;
    --theme-btn-save-proceed-bg: var(--color-blue);
    --theme-btn-save-proceed-color: white;
    --theme-btn-keep-edit-bg: var(--color-green);
    --theme-btn-keep-edit-color: var(--color-navy);
    --theme-btn-edit-info-bg: var(--color-white);
    --theme-btn-edit-info-color: var(--color-navy);
    --theme-btn-discard-bg: var(--color-white);
    --theme-btn-discard-color: var(--color-navy);
    --theme-btn-close-modal-x-bg: var(--color-green);
    --theme-btn-close-modal-x-color: var(--color-navy);
    --theme-btn-pop-up-ok-bg: var(--color-green);
    --theme-btn-pop-up-ok-color: var(--color-navy);
    --theme-height-logo-brand: 100px;
    --theme-max-width-home: 450px;
    --theme-progress-bar-fill-bg: var(--color-navy);
    --theme-top-status-card-bg: var(--color-navy);
    --theme-printer-instruction-color: white;
    --theme-all-set-icon-fill: var(--color-green);
    --theme-all-set-text-color: var(--color-green);
    --theme-timer-progress-color: var(--color-green);
    --theme-start-over-btn-bg: var(--color-green);
    --theme-start-over-btn-color: var(--color-navy)
}

.head-content {
    flex: 0 0 auto;
    position: relative;
    text-align: center;
    display: flex;
    flex-flow: row nowrap;
    margin-right: 15px;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

    .head-content .head-content-left {
        flex: 1 0 auto;
        display: flex;
        flex-flow: row;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
    }


    .head-content .fpbadgeWebIcon {
        width: 75px;
    }

.event-info-section {

}

    .event-info-section .event-title,
    .event-info-section .event-date {
        font-family: Roboto;
        font-weight: 800;
        font-size: 1.75rem;
        line-height: 40px;
        color: #0B1556;
        /*color: white;*/
        text-align: start;
        margin: 0;
        padding: 0;
    }

    .event-info-section .event-date {
        color: white;
        font-weight: normal;
        font-size:1.5rem;
    }


.mode-button {
    display: inline-block;
    padding: 18px;
    width: 100%;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: none;
}

    .mode-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    }

    .mode-button:active {
        transform: translateY(0);
    }

    .mode-button.user-mode {
        background: white;
        color: #1a2849;
    }

        .mode-button.user-mode:hover {
            background: #f8f9fa;
        }

    .mode-button.admin-mode {
        background: linear-gradient(135deg, #1a2849 0%, #0f1d36 100%);
        color: white;
    }

        .mode-button.admin-mode:hover {
            background: linear-gradient(135deg, #0f1d36 0%, #081020 100%);
        }



.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    color: var(--color-navy);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/*.page-title {
    color: var(--color-navy);
    font-size: 32px;
    margin-bottom: 15px;
}
*/
.date {
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -15px;
}

.message {
    position: absolute;
    bottom: 40px;
    right: 24px;
    margin-top: 30px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    display: none;
}

    .message.show {
        display: block;
        opacity: 1;
    }

    .message.success {
        background: var(--color-green);
        color: #1a5d3f;
    }

    .message.error {
        background: rgba(255, 82, 82, 1);
        color: #8b1a1a;
    }
/*---------------------------- spinner -------------------------------------*/
*.loading {
    position: relative;
    padding-left: 2.2rem; /* Make space for spinner */
    background-color: #aaa !important;
    color: #fff !important;
    cursor: not-allowed;
}

    /* Spinner as a pseudo-element */
    *.loading::before {
        content: "";
        position: absolute;
        top: calc(50% - 11px);
        left: 20px;
        width: 22px;
        height: 22px;
        border: 2px solid var(--color-blue);
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Another spinner*/
.custom-btn-spinner {
    display: inline-block;
    width: 1.5em; /* Scales automatically with button font-size */
    height: 1.5em; /* Scales automatically with button font-size */
    border: 3px solid currentColor; /* Matches the button's text color */
    border-right-color: transparent; /* Creates the cutout for the spin effect */
    border-radius: 50%;
    animation: btn-spin 0.75s linear infinite;
    vertical-align: middle;
}

    /* Adds a small gap if you pass text along with the loader */
    .custom-btn-spinner + .spinner-text {
        margin-left: 8px;
    }

/* The spinning animation */
@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
/************************/
.fp-btn {
    width: 300px;
    background: var(--color-navy);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 35px;
    transition: all 0.3s ease;
}

    .fp-btn i,
    .fp-btn img {
        margin-right: 8px;
        width: 20px;
    }

    .fp-btn:hover {
        transform: translateY(-2px);
        background: #0f1d36;
    }

    .fp-btn:active {
        transform: translateY(0);
    }


    .fp-btn.fp-btn-green {
        background-color: var(--color-green);
    }

    .fp-btn.fp-btn-blue {
        background-color: var(--color-blue);
    }

    .fp-btn.fp-btn-yellow {
        background-color: var(--color-orange);
    }

    .fp-btn.fp-btn-light {
        background: white;
        color: #1a2849;
    }

        .fp-btn.fp-btn-light:hover {
            background: #f0f0f0;
        }


    .fp-btn.fp-btn-light {
        background: white;
        color: #1a2849;
    }

        .fp-btn.fp-btn-light:hover {
            background: #f0f0f0;
        }


    .fp-btn.fp-btn-dark {
        background: linear-gradient(135deg, #1a2849 0%, #0f1d36 100%);
        color: white;
        margin-top: 0px;
    }

        .fp-btn.fp-btn-dark:hover {
            background: linear-gradient(135deg, #25448a 0%, #1a2849 100%);
        }

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px); /* move slightly upward */
    }
}


.main-content {
    height: 100vh;
}



/* Layout Structure */
#wrapper {
    display: flex;
    height: 100%;
    -webkit-justify-content: stretch;
    justify-content: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 15px;
}

/* Sidebar Styling */
#sidebar-wrapper {
    min-width: 230px;
    max-width: 280px;
    width: 30%;
    height: 100%;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background-color: #0B1556E5;
    color: white;
    padding: 20px;
    justify-content: space-evenly;
}

    #sidebar-wrapper .sidebar-heading {
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 600;
        font-size: 20px;
        line-height: 27px;
        color: #10E6B2;
    }

    #sidebar-wrapper .list-group-item {
        background-color: transparent;
        color: #adb5bd;
        border: none;
        padding: 1rem 1.5rem 1rem 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        border-radius: 100px;
    }

        #sidebar-wrapper .list-group-item:hover {
            font-weight: bold;
        }

        #sidebar-wrapper .list-group-item.active {
            font-weight: bold;
            color: white;
            background-color: rgb(0 10 53);
        }

        #sidebar-wrapper .list-group-item i {
            margin-right: 10px;
            text-align: center;
            border: 1px solid;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
        }

.right-side {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    width: calc(100% - 295px)
}
/* Page Content */
#page-content-wrapper {
    /*flex: 1;*/
    overflow-y: auto;
    padding: 2rem;
    background-color: white;
    border-radius: 25px;
    margin-right: 15px;
    margin-bottom: 15px;
}

    #page-content-wrapper .page-title {
        color: #878787;
        font-size: 20px;
        font-weight: bold;
    }

    #page-content-wrapper:has(#tab-registrants.active),
    #page-content-wrapper:has(#tab-settings.active) {
        padding: 0;
        height: 100%;
        overflow: hidden;
    }

    #page-content-wrapper .container-fluid:has(#tab-registrants.active) {
        height: 100%
    }


.tab-content-area {
    display: none;
    animation: fadeIn 0.4s ease;
}

    .tab-content-area.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Card Styles for Partials */
.content-card {
    background: #fff;
    border-radius: 12px;
    border: none;
}

.content-header {
    padding: 0.75rem 1rem;
}

.content-body {
    padding: 0 1rem;
}

.loader {
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
