﻿/* ==========================================================
   SITE MASTER CSS (CLEANED & CONSOLIDATED + THEME FIX)
   ========================================================== */

/* ==========================================================
   1. GLOBAL BASE
   ========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 0px;
    padding-bottom: 0rem;
    color: rgb(var(--bs-tertiary-color-rgb));
    background-color: var(--bs-body-bg);
}

h1, h2, h3, h4 {
    font-weight: 600;
}

/* ==========================================================
   2. HELPERS / BOOTSTRAP OVERRIDES
   ========================================================== */

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

/* ==========================================================
   3. AUTH PAGES (LOGIN / REGISTER / FORGOT PASSWORD)
   ========================================================== */

.auth-page {
    min-height: 100vh;
    background: url('../Images/pexels-zhuhehuai-538627.jpg') center/cover no-repeat;
}

.auth-overlay {
    background: rgba(0,0,0,0.55);
    min-height: 100vh;
}

.auth-card {
    border-radius: 12px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
}

.auth-title {
    font-weight: 600;
}

.form-control {
    border-radius: 8px;
}

.btn-modern {
    border-radius: 8px;
    padding: 10px;
}

/* ==========================================================
   4. BACK TO HOME BUTTON (GLOBAL)
   ========================================================== */

#backToHome {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease, color 0.3s ease;
}

    #backToHome:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.4);
        background-color: var(--bs-primary-dark, #0d6efd);
        color: white;
    }

[data-bs-theme="dark"] #backToHome {
    background-color: #0d6efd;
    color: white;
}

    [data-bs-theme="dark"] #backToHome:hover {
        background-color: #0b5ed7;
        color: white;
    }

/* ==========================================================
   5. TOS TEXT FIELD
   ========================================================== */

[data-bs-theme="light"] .tos-text {
    background-color: #f8f9fa;
    color: #212529;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
}

[data-bs-theme="dark"] .tos-text {
    background-color: #1c1e21;
    color: #e2e2e2;
    border: 2px solid #2d2f31;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
}

/* ==========================================================
   6. FULL PAGE OVERLAY
   ========================================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--bs-body-bg-rgb), 0.85);
    color: var(--bs-body-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    transition: opacity 0.3s ease-in-out;
}
