html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    background: linear-gradient(to bottom, #dbe9d8 0%, #f0e9d2 40%, #d6e4f0 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #3e3e3e;
    z-index: 0;
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../Images/background.webp'), linear-gradient(to bottom, rgba(219, 233, 216, 0.7) 0%, rgba(240, 233, 210, 0.7) 40%, rgba(214, 228, 240, 0.7) 100%);
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center bottom, center bottom;
    background-attachment: fixed, fixed;
}

.white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* 50% white */
    z-index: 1;
}

.translucent-box {
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px); /* Optional: adds a blur behind the box */
    margin-top: 2rem;
    max-width: 350px;
}


.centered-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.center-align {
    display: block;
    margin: 2rem auto;
    padding: 1rem;
}

main {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
}

h1 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
    color: #54836b;
}

h3 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: #54836b;
}

h4 {
    font-weight: 700;
    margin-bottom: 1.1rem;
    font-size: 1.1rem;
    color: #54836b;
}

p {
    font-weight: 400;
    font-size: 0.9rem;
    text-align: justify;
}

p,
ul {
    font-weight: 400;
    font-size: 0.9rem;
    text-align: justify;
}


.input-group {
    margin-bottom: 1.5rem;
    align-items: center;
}

.input-group-text {
    background: transparent;
    border: 1.5px solid #bbb;
    border-right: none;
    color: #6ca18f;
    font-size: 1.5rem;
    border-radius: 0.5rem 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
}

.input-group > .form-control {
    border-radius: 0 0.5rem 0.5rem 0;
    border: 1.5px solid #bbb;
    border-left: none;
    padding: 0.66rem 0.5rem;
    font-size: 1.1rem;
}

.form-control::placeholder {
    color: #a0b39c;
    opacity: 1;
}

.form-control:focus {
    border-color: #6ca18f;
    box-shadow: none;
    outline: none;
}

.form-check {
    padding-left: 0;
    margin-bottom: 2rem;
}

.form-check-label {
    margin-left: 0.5rem;
    font-weight: 500;
    color: #3e3e3e;
    font-size: 0.95rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
}

    .form-check-input:checked {
        background-color: #674636;
        border-color: #674636;
    }

.btn-primary {
    border-radius: 2rem;
    padding: 0.85rem 2rem;
    background-color: #6ca18f;
    border: none;
    font-weight: 600;
    font-size: 1.15rem;
    width: 100%;
    transition: background-color 0.25s ease;
    box-shadow: 0 4px 8px rgba(108, 161, 143, 0.3);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #54836b;
        outline: none;
        box-shadow: 0 6px 12px rgba(84, 131, 107, 0.5);
    }

.support-logo {
    max-height: 120px;
    max-width: 85px;
    object-fit: contain;
}

.progress-container {
    width: 100%;
    max-width: 500px;
    background: transparent;
    backdrop-filter: none;
    border-radius: 20px;
    padding: 20px;
    box-shadow: none;
    border: none;
    opacity: 0;
    transform: translateY(20px);
    animation: containerFadeIn 0.8s ease-out 0.2s forwards;
}

@keyframes containerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-label {
    color: #c28828; /* Warm gold */
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: none;
}

.progress-bar-wrapper {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(90deg, #c28828 0%, #f6b43b 50%, #c28828 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(194, 136, 40, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #fbeec1 0%, #f6b43b 25%, #c28828 50%, #f6b43b 75%, #fbeec1 100%);
    border-radius: 12px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(246, 180, 59, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    width: 0%;
}

    .progress-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
        border-radius: 12px 12px 0 0;
        z-index: 1;
    }

    .progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
        animation: shimmer 2s infinite;
        z-index: 2;
    }

.progress-bar-text {
    color: #3b2e0b;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.camera-item {
  font-size: 0.7rem;
  padding: 0.5rem 1.25rem;
  display: inline-block;
  white-space: nowrap;
}


@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.progress-bar-text.show {
    opacity: 1;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    color: #3e3e3e;
    font-weight: 700;
    font-size: 16px;
    text-shadow: none;
    background: rgba(246, 180, 59, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

    .progress-percentage::before {
        content: '';
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid rgba(246, 180, 59, 0.9);
    }

@media (max-width: 130px) {
    .progress-percentage {
        position: static;
        transform: none;
        margin-top: 15px;
        text-align: center;
        display: inline-block;
        width: 100%;
    }

        .progress-percentage::before {
            display: none;
        }
}


.quiz-question {
    padding: 1.25rem;
    border-radius: 1rem;
    transition: background-color 0.4s ease;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .quiz-question .form-check {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        padding-left: 1.5rem; /* Increased from 0 to indent */
    }


    .quiz-question .form-check-input {
        margin-right: 0.5rem;
        width: 1.2rem;
        height: 1.2rem;
        border-radius: 0.25rem;
    }

    .quiz-question .form-check-label {
        font-weight: 500;
        color: #3e3e3e;
        font-size: 0.95rem;
    }

    .quiz-question .feedback {
        font-weight: 600;
        font-size: 0.95rem;
        margin-top: 0.5rem;
        display: none;
        animation: fadeIn 0.4s ease;
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        text-align: center;
    }

        .quiz-question .feedback.correct {
            background-color: #d1f3da;
            color: #2d6a4f;
            border: 1px solid #95d5b2;
        }

        .quiz-question .feedback.incorrect {
            background-color: #f8d7da;
            color: #842029;
            border: 1px solid #f5c2c7;
        }

    .quiz-question.is-correct {
        background-color: #ecfdf5;
        border: 2px solid #95d5b2;
    }

    .quiz-question.is-incorrect {
        background-color: #fff0f0;
        border: 2px solid #f5c2c7;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.disabled-click {
    pointer-events: none;
    text-decoration: none;
    color: grey;
}

/*Dashboard*/
.bg-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.table thead th {
    border-bottom-width: 1px;
    font-weight: 600;
}

.card-title {
    font-weight: 600;
    color: #495057;
}