html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ===== NEW: Landing Page Background ===== */
body.landing {
    background: url('/images/LandingPage/Monastary.png') center/cover no-repeat fixed;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

    body.landing::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(240, 224, 200, 0.55);
        backdrop-filter: blur(3px);
        z-index: -1;
    }

/* ===== NAVBAR ===== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important; /* transparent on landing */
    z-index: 10;
    padding: 1rem 2rem;
}

body.dashboard .navbar {
    position: fixed;
    top: 0;
    background-color: #212529 !important;
    color: white;
    z-index: 1030;
    padding-left: 0;
}

    body.dashboard .navbar .nav-link,
    body.dashboard .navbar-brand {
        color: #f8f9fa !important;
    }

        body.dashboard .navbar .nav-link:hover {
            color: #ffc107 !important;
        }

.navbar .ms-auto {
    margin-left: auto !important;
}

/* ===== HERO SECTION (Landing Page) ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    color: #4b3621;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

    .hero-content h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

.btn-primary {
    background-color: #6b4226;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
}

    .btn-primary:hover {
        background-color: #8b5e3c;
    }
/* ===== SIDEBAR (Dashboard) ===== */
body.dashboard #sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 220px;
    height: calc(100% - 56px);
    background-color: #212529;
    transition: width 0.3s;
    overflow-x: hidden;
    padding-top: 10px;
    z-index: 1020;
}

body.dashboard #page-content {
    margin-top: 56px;
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* Collapsed state */
body.dashboard.sidebar-collapsed #sidebar {
    width: 70px;
    text-align: center;
}
#page-content.expanded {
    margin-left: 70px;
}
body.dashboard.sidebar-collapsed #page-content {
    margin-left: 70px;
}

body.dashboard.sidebar-collapsed .link-text {
    display: none;
}

body.dashboard.sidebar-collapsed #sidebar .nav-link {
    justify-content: center;
}

    body.dashboard.sidebar-collapsed #sidebar .nav-link i {
        font-size: 1.3rem;
        margin: 0 auto;
    }

body.dashboard .navbar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative; /* so absolutely positioned toggle is relative to this container */
}

/* toggle button style — flush to the far left and vertically centered in the navbar */
/* Align toggle with sidebar icons */
body.dashboard .navbar #sidebarToggle {
    position: absolute;
    left: 20px; 
    top: 50%;
    transform: translateY(-50%);
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1100;
    background-color: transparent;
    border: none;
}


/* if you want the icon to match the sidebar icon size more closely */
body.dashboard #sidebar .nav-link i {
    font-size: 1.2rem;
}

/* make sure the navbar content (welcome text / logout) doesn't overlap the toggle */
body.dashboard .navbar .flex-grow-1 {
    padding-left: 48px; /* give space for the toggle (toggle width + small gap) */
}

body.sidebar-collapsed #sidebar {
    width: 60px;
}

    body.sidebar-collapsed #sidebar .link-text {
        display: none; /* hide text labels */
    }

    body.sidebar-collapsed #sidebar .nav .collapse {
        display: none !important; /* hide submenus */
    }

    body.sidebar-collapsed #sidebar .nav-link {
        justify-content: center;
        text-align: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
/* Smooth fade-in for dashboard components */
.dashboard-section {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated dashboard cards */
.dashboard-card {
    transition: all 0.3s ease;
    border-radius: 18px;
    cursor: pointer;
}

    .dashboard-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

/* Sidebar styling */
.sidebar {
    height: 100vh;
    background: #1b2235;
    color: #fff;
    padding-top: 25px;
}

    .sidebar a {
        display: block;
        padding: 12px 18px;
        color: #d7dbe0;
        text-decoration: none;
        transition: 0.2s;
    }

        .sidebar a:hover {
            background: #2a3350;
            color: #fff;
            padding-left: 25px;
        }
/* Fix floating translate button overflow */
body .catalyst-container {
    right: 0 !important;
}





