/* Background overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -9999;
}

/* Structure de base pour le sticky footer */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Main content */
.masthead {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

/* Footer styling */
.footer {
    flex-shrink: 0;
    width: 100%;
    padding: 2rem 0;
    margin-top: auto;
    /* background-color: rgba(255, 255, 255, 0.9); */
}

/* Background image and gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ebd8b7;
    background-image: url('../assets/9441967.jpg');
    background-repeat: repeat;
    background-size: 2160px 1440px;
    background-attachment: fixed;
    z-index: -10000;
}

/* Gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(146.11deg,
        rgba(227, 185, 155, 0.98) 0%,
        rgba(227, 185, 155, 0.96) 100%);
    pointer-events: none;
    z-index: -9999;
}

/* Ensure content is above the overlay */
.container-fluid, .masthead {
    position: relative;
}

/* Ensure modals are always on top */
.modal {
    z-index: 1055 !important;  /* Valeur par défaut de Bootstrap */
}

/* Adjust card backgrounds for better contrast */
.card {
    background-color: rgba(255, 255, 255, 0.9);
}

@font-face {
    font-family: 'Hafs';
    src: url('KFGQPC Uthmanic Script HAFS Regular.otf');
    font-weight: normal;
}

.verse-text {
    font-family: Hafs !important;
    font-size: 32px;
    font-weight: normal;
    color: var(--bs-primary);
}

.verse-text-min {
    max-height: 160px;
    overflow: auto;
}

.btn-answers {
    font-family: Hafs !important;
}

.fa-circle-check {
    color: #198754;
}

.fa-circle-xmark {
    color: #dc3545;
}

.bottom-align-text {
    position: absolute;
    vertical-align: bottom
}

/* Selecteur de rooms */
.col-md-4 {
    margin-top: 27px
}

.room-card {
    cursor: pointer;
}

/* Override des styles par défaut du thème */
.masthead {
    min-height: unset;
    height: unset;
    position: relative;
    display: flex;
}

.cursor-pointer {
    cursor: pointer;
}

/* Styles pour les cartes de rooms */
.cursor-pointer .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.cursor-pointer .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

.cursor-pointer .card:active {
    transform: translateY(-2px);
}

/* Animation pour l'icône de flèche */
.cursor-pointer .card:hover .fa-angle-right {
    transform: translateX(5px);
}

.cursor-pointer .fa-angle-right {
    transition: transform 0.2s ease;
}

/* Style pour le texte "Rejoindre" */
.cursor-pointer .text-primary {
    font-weight: 500;
}

/* Style pour le statut de la room */
.room-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.room-status.in-progress {
    background-color: rgba(var(--bs-warning-rgb), 0.1);
    color: var(--bs-warning);
}

.room-status.waiting {
    background-color: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success);
}
