﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bs-red: #dc2626;
    --bs-red-dark: #b91c1c;
    --bs-red-light: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
}

.bg-gradient-red {
    background: linear-gradient(to right, #b91c1c, #dc2626);
}

.text-red {
    color: var(--bs-red);
}

.text-red-dark {
    color: var(--bs-red-dark);
}

.btn-outline-secondary {
    border-color: #e5e7eb;
    color: #4b5563;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-content-active {
    background-color: #cb2121;
    color: #fff;
}
.badge-outline-light {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.progress {
    height: 4px;
}

.progress-bar {
    background-color: var(--bs-red);
}

.card {
    border-color: #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bg-amber-light {
    background-color: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.footer {
    background-color: #1f2937;
    color: white;
}

.footer-text {
    color: #ccc !important;
}
.footer a {
    color: #9ca3af;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.welcome-image {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.welcome-content {
    line-height: 1.6;
}

.contact-section {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.module-active .progress-bar {
    background-color: #198754;
}
.module-active .module-progress-text {
    color: #198754 !important;
}

.module-completed .card-body,
.module-completed .card-footer {
    background-color: #f9fafb !important;
    /*background-color: #ecf8f1 !important;*/
    opacity: 0.6;
}

.module-completed .module-progress-text {
    color: #dc2626 !important;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.faq-question-text {
    color: #212529;
    margin: 0;
    font-weight: 500;
}

.faq-answer {
    padding: 20px;
    background-color: #fafafa;
}

.answer-label {
    display: inline-block;
    background-color: #0d6efd;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.faq-answer p {
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/*.form-check-input:checked {
    background-color: #cc2229;
    border-color: #cc2229;
}
*/
/*.form-check-input:focus {
    border-color: #cc2229;
    box-shadow: 0 0 0 0.25rem rgba(204, 34, 41, 0.25);
}*/

.login .form-check {
    padding-left: 28px !important;
}

.form-check {
    padding-left: 0 !important;
}

.form-check td label {
    padding-left: 1rem;
    margin-bottom: 10px;
    color: #212529
}


.custom-radio .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
}

.custom-radio .form-check-label {
    padding-left: 0.5rem;
}

.alert-warning {
    background-color: #fff8e1;
    border-color: #ffe082;
    color: #856404;
}

.btn-danger {
    background-color: #cc2229;
    border-color: #cc2229;
}

.btn-danger:hover {
    background-color: #b91c22;
    border-color: #b91c22;
}

.bg-danger {
    background-color: #cc2229 !important;
}

.questions .question ul {
    font-size: 16px;
    list-style: none;
    margin-left: 5px;
}

.questions .question ul li {
    margin-bottom: 8px;
}

.questions .question ul li::before {
    content: "–"; /* en dash, or use "-" for hyphen */
    position: absolute;
    left: 40px;
    color: #212529; /* Optional: match your text color */
}

.question .required-validator {
    position: absolute;
    right: 10px;
    top: 10px
}

.question td {
    display: flex;
    align-items: flex-start;
}

.question td input[type=radio]{
    margin-top: 5px;
}
.validation-summary {
    color: #58151c !important;
}

.btn-danger {
    background-color: #cc2229;
    border-color: #cc2229;
}

.btn-danger:hover {
    background-color: #b91c22;
    border-color: #b91c22;
}

.text-primary {
    color: #0d6efd !important;
}

.text-danger {
    color: #cc2229 !important;
}
/*
.form-check-input:checked {
    background-color: #cc2229;
    border-color: #cc2229;
}*/

/*.form-check-input:focus {
    border-color: #cc2229;
    box-shadow: 0 0 0 0.25rem rgba(204, 34, 41, 0.25);
}
*/
.input-group-text {
    color: #6c757d;
}

.card-congratulations .bg-success {
    background-color: #28a745 !important;
}

.card-congratulations .text-success {
    color: #28a745 !important;
}

.btn-danger:hover {
    background-color: #b91c22;
    border-color: #b91c22;
}

.card-congratulations .success-icon svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.certificate-preview {
    background-color: white;
    transition: all 0.3s ease;
}

.certificate-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Default: show standard header, hide custom header */
.standard-header {
    display: flex;
}

.custom-mobile-header {
    display: none;
}

/* Mobile landscape: hide standard header, show custom one */
@media screen and (max-device-width: 1024px) and (orientation: landscape) {
    .standard-header {
        display: none !important;
    }

    .custom-mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 1rem;
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
        font-size: 1rem;
    }

        .custom-mobile-header .title {
            font-weight: 500;
        }

    #inductionFrame {
        height: calc(100vh - 48px); /* Adjust for header height */
        width: 100vw;
    }
}

