:root {
    --bg-gold: #C9A96E;
    --bg-gold-light: #E8D5B0;
    --bg-gold-pale: #FBF6EE;
    --bg-dark: #1C1A17;
    --bg-mid: #3A3530;
    --bg-warm: #6B5F4F;
    --bg-stone: #E4DDD4;
    --bg-stone-light: #F2EDE7;
    --bg-cream: #F8F4EF;
}

body {
    font-family: 'Poppins', sans-serif !important;
    color: #505050;
}

h1 {
    font-size: 1.6em !important;
}

h1, h2, h3, b {
    font-weight: bold;
}

a {
    text-decoration: none;
    color: #FFB600;
    transition: 1s;
}

.qr_code svg {
    max-width: 100%;
}

/* Define a class for elements where you want to reverse the text color */
.reverse-text-color {
    color: black; /* Default text color, can be adjusted */
}

:root {
    --light: 80;
    /* the threshold at which colors are considered "light." Range: integers from 0 to 100,
  recommended 50 - 70 */
    --threshold: 60;

}

/* Define a class for elements where you want to reverse the text color */
.reverse-text-color {
    --switch: calc((var(--light) - var(--threshold)) * -100%);
    color: hsl(0, 0%, var(--switch)) !important;
}


p.title {
    font-size: 1.1em;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.text-start {
    text-align: left;
}

.text-muted {
    color: #C4C4C4 !important;
}

.text-orange {
    color: #FFB600;
}

a.text-muted:hover {
    color: #0a58ca !important;
}

.flatpickr-calendar.inline {
    margin: 0 auto !important;
}

table tbody tr:hover {
    background: rgba(255, 183, 0, 0.3);
    transition: .25s;
}

.flex-center {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.btn-primary {
    background: var(--bg-gold);
    border: 1px solid var(--bg-gold);
    color: black;
}

.btn-primary:hover, .btn-primary:active {
    background: var(--bg-gold) !important;
    border: 1px solid var(--bg-gold) !important;
    color: black !important;
    transition: .5s;
}

.btn-select {
    background: transparent;
    border: 1px solid #ced4da;
}

.btn-success, .bg-success {
    background: #82E0AA !important;
    border: 1px solid #82E0AA !important;
}

tr.bg-success {
    border: 0 !important;
}

.alerts > div > .alert {
}

.btn-link {
    text-decoration: none;
}

.btn-lg {
    font-size: 1em;
    padding: 1em;
}

.btn-secondary {
    background: #2674FF;
    border: 1px solid #2674FF;
}

.btn-secondary:hover {
    background: rgba(38, 118, 255, 0.5);
    border: 1px solid #2674FF;
    color: black;
    transition: .5s;
}

.btn-transparent {
    border: 1px solid #2E2E2E !important;
}

.dt-buttons {
    white-space: nowrap;
}

.alert {
    font-weight: normal !important;
}

.alert-warning {
    background: #FBD578;
}

.alert-danger ul {
    margin: 0;
}

.circle {
    background: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: 1em;
    padding: .5em;
    line-height: 3.5em;
    position: relative;
    background-size: contain;
    background-position: center;
}

.circle img {
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.circle i {
    line-height: 3em;
}

#sidebar-wrapper {
    background: transparent;
    padding: 1em;
    border: none;
    text-align: center;
    font-size: 1em;
}

#sidebar-wrapper .sidebar {
    background: #F1F0FF;
    border-radius: 14px;
    padding: .5em;
    height: 100%;
}

#sidebar-wrapper a {
    color: #2674FF;
}

.list-group-item {
    background: transparent !important;
    border: none;
    transition: 0s !important;
}

.user_form {
    border: 1px solid #C4C4C4;
    border-radius: 9px;
}

.user_form input, .user_form select {
    background: transparent;
    border: 0;
    width: 90%;
}

.custom_select {
    cursor: pointer;
    padding: 1em;
}

.custom_select.active {
    background: #2674FF;
    color: white;
}

.custom_select:hover {
    background: #eaeaea;
    color: black;
}

.navbar {
    border-bottom: 1px solid #C4C4C4;
}

.navbar-nav {
    text-align: center;
}

.navbar-toggler {
    border: none;
}

.text-red {
    color: red !important;
}

.bg-img {
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 auto;
    position: relative;
}

.bg-blue {
    background: #2674FF;
    color: white;
}

.card {
    background: transparent;
    border: 1px solid #C4C4C4;
}

.card.selected {
    background: rgba(93, 173, 226, 0.6);
}

.card p {
    margin: 0;
}

.image {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.form-card {
    transition: 1s;
}

.form-card {

}

.form-check .form-check-input {
    float: none;
    margin-right: .5em;
}

.form-transparent {
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    height: fit-content;
    white-space: normal;
    text-align: justify;
    -moz-text-align-last: center; /* Firefox 12+ */
    text-align-last: center;
}

.card-body.selected {
    border: 1px solid #2674FF;
    background: #F6F5FF;
}

tr:last-child {
    border: 0;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

:focus {
    outline: 0px;
}

.quiz_title {
    font-size: 30px;
    font-weight: 700;
    color: #292d3f;
    text-align: center;
    margin-bottom: 50px;
}

.quiz_card_area {
    position: relative;
    margin-bottom: 30px;
}

.single_quiz_card {
    border: 2px solid #C4C4C4;
    border-radius: 15px;
}

.quiz_card_title {
    padding: 0 10px 10px 10px;
    text-align: center;
}

.quiz_card_title p {
    margin: 0;
}

.quiz_card_icon {
    max-width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    padding: .5em 0 0 0;
    justify-content: center;
}

.quiz_icon {
    width: 70px;
    height: 75px;
    position: relative;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -khtml-transition: all 0.3s linear;
    transition: all 0.3s linear;
}

.quiz_icon1 {
    background-image: url('https://img.icons8.com/ios-filled/32/000000/maxcdn.png');
}

.quiz_icon2 {
    background-image: url('https://img.icons8.com/ios-filled/48/000000/download-2.png');
}

.quiz_icon3 {
    background-image: url('https://img.icons8.com/ios/50/000000/cloudflare.png');
}

.quiz_icon4 {
    background-image: url('https://img.icons8.com/dotty/80/000000/download-2.png');
}

.quiz_checkbox {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    cursor: pointer;
}


.single_quiz_card .quiz_card_title .info {
    position: relative;
    text-align: center;
}

.single_quiz_card .quiz_card_title a {
    z-index: 1000;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
}

.quiz_checkbox:checked ~ .single_quiz_card {
    border: 2px solid #2674FF;
    border-radius: 15px;
    background: rgba(38, 116, 255, 0.2);
}

/*Icon Selector*/

.quiz_checkbox:checked ~ .single_quiz_card .quiz_card_content .quiz_card_icon {
    color: #2674FF;
}


.quiz_card_icon {
    font-size: 50px;
    color: #000000;
}

.fc-event-time::after {
    content: ": \00a0" !important;
}

.page-item.d-none:nth-child(-n+3) {
    display: block !important;
}

.page-item.d-none:nth-last-child(-n+3) {
    display: block !important;
}

.page-item.d-none.active {
    display: block !important;
}

.list-group.addresses .list-group-item:hover {
    background: #2674FF !important;
    color: white;
}

.list-group.addresses .list-group-item.active {
    background: #2674FF !important;
    color: white;
}

.ts-control {
    border: 0 !important;
    padding: 5px 0px !important;
}

.one-line {
    white-space: nowrap !important;
}


.progress_list {
    text-align: justify;
    position: relative;
    overflow: hidden;
}

.progress_list:before, .progress_list .active:after {
    content: '';
    width: 100%;
    border: 2px solid #FFB600;
    position: absolute;
    top: 1.55em;
    margin-top: -6px;
    z-index: -1;
}

.progress_list .active:after {
    border-color: #b7b7b7;
}

.progress_list:after {
    content: "";
    display: inline-block;
    width: 100%;
}

.progress_list li {
    width: 2.5em;
    height: 2.5em;
    text-align: center;
    line-height: 2.5em;
    border-radius: 50%;
    background: #FFB600;
    margin: 0 1em;
    display: inline-block;
    color: white;
    font-size: 1em;
}

.progress_list .marker-number {
    font-size: 14px;
}

.progress_list li.active {
    background: #2674FF;
}

.progress_list .active ~ li {
    background: #b7b7b7;
}

.progress_list span.marker-text {
    color: #505050;
    font-size: 12px;
    line-height: 16px;
    width: 70px;
    display: block;
    margin-left: -17px;
    margin-top: 2px;
    overflow-wrap: break-word;
}

.sidebar-item.active .sidebar-link:hover, .sidebar-item.active > .sidebar-link {
    border-left-color: #FFB600 !important;
    background: linear-gradient(90deg, rgba(255, 183, 0, .1), rgba(255, 183, 0, .088) 50%, transparent);
}

.sidebar-content {
    height: 100% !important;
}

.sidebar-header {
    font-weight: bold;
}

@media only screen and (max-width: 980px) {
    .user_form {
        padding: 1em;
    }
}

@media only screen and (max-width: 600px) {
    .d-flex.breakable {
        display: block !important;
    }

    .d-flex.breakable .flex-fill {
        padding-bottom: .5em;
    }
}

.bk-account-dropdown {
    position: relative;
}

.bk-account-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.bk-account-caret {
    font-size: 9px;
    vertical-align: middle;
    margin-left: 3px;
    opacity: 0.6;
}

.bk-account-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--bk-navbar-bg, #243d31);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 4px 0;
    min-width: 160px;
    z-index: 9999;
}

.bk-account-menu--open {
    display: block;
}

.bk-account-item {
    display: block;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.65) !important;
    padding: 8px 16px;
    text-decoration: none;
}

.bk-account-item:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.95) !important;
}

.bk-account-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 4px 0;
}

/* ── Data table ── */
.bk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.bk-table thead th {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8278;
    padding: 0 12px 10px;
    border-bottom: 1px solid #e4ddd4;
    white-space: nowrap;
    text-align: left;
}

.bk-table tbody tr {
    border-bottom: 1px solid #f2ede7;
    transition: background 0.1s;
}

.bk-table tbody tr:last-child { border-bottom: none; }

.bk-table tbody tr:hover { background: #faf8f5; }

.bk-table tbody td {
    padding: 13px 12px;
    color: #3a3530;
    vertical-align: middle;
}

.bk-table-ref {
    font-weight: 500;
    color: #3a3530;
    text-decoration: none;
}

.bk-table-ref:hover { color: var(--bk-gold, #c9a96e); }

.bk-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 20px;
}

.bk-status--confirmed   { background: #eaf6ef; color: #2d7a4f; }
.bk-status--pending     { background: #fef9ec; color: #9a7820; }
.bk-status--quote       { background: #f0f0f0; color: #666; }
.bk-status--other       { background: #f0f0f0; color: #666; }

.bk-table-action {
    font-size: 12px;
    color: var(--bk-gold, #c9a96e);
    text-decoration: none;
    font-weight: 500;
}

.bk-table-action:hover { color: #b8945a; }

.bk-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.bk-table-search {
    position: relative;
    flex: 0 0 220px;
}

.bk-table-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 12px;
    pointer-events: none;
}

.bk-table-search input {
    width: 100%;
    padding: 7px 12px 7px 30px;
    border: 1px solid #e4ddd4;
    border-radius: 8px;
    font-size: 13px;
    background: #faf8f5;
    color: #3a3530;
    outline: none;
}

.bk-table-search input:focus {
    border-color: var(--bk-gold, #c9a96e);
    background: #fff;
}

.bk-owed { color: #c0392b; font-weight: 500; }
