/* ===================================================================
 * TABLE OF CONTENTS
 *
 * 1.  VARIABLES & GLOBAL STYLES
 * 2.  LANDING PAGE STYLES
 * 3.  MAIN DASHBOARD - MODULE CARDS
 * 4.  UTILITIES & HELPERS
 * =================================================================== */

/* ===================================================================
 * 1. VARIABLES & GLOBAL STYLES
 * =================================================================== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f4f7f6;
    --white: #fff;
    --text-dark: #343a40;
    --border-color: #dee2e6;

    --primary-blue: #0d6efd;
    --primary-blue-light: #e7f0ff;
    --primary-blue-hover: #0b5ed7;
    --soft-white: #ffffff;
    --main-bg: #f8f9fa;
    --text-muted: #6c757d;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================================================
 * 2. LANDING PAGE STYLES 
 * =================================================================== */

.navbar-custom {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-custom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-custom .logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-buttons .btn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-left: 10px;
    font-weight: 600;
}

.btn-login {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

/* Hero Side-Panel Layout */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    background: url('/assets/img/hero_imga.webp') no-repeat center right;
    background-size: cover;
    color: var(--white);
}

.hero-content-panel {
    background: rgba(0, 0, 0, 0.65); /* Glassmorphism base */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.panel-inner-container {
    padding: 2rem;
}

/* Desktop Floating Glass Card */
@media (min-width: 992px) {
    .hero {
        min-height: 85vh;
        align-items: flex-end;
        padding-bottom: 50px;
        padding-left: max(3%, 30px); /* Pushed to extreme left */
    }
    .hero-content-panel {
        width: 100%;
        max-width: 440px; /* Shrunk width */
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    }
}

/* Mobile Top/Bottom Split */
@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        justify-content: flex-end;
        background-image: url('/assets/img/hero-mobile.webp'); 
        background-position: top center;
        background-color: #000; /* Fallback for the black space */
        min-height: 90vh;
    }
    .hero.home-hero {
        background-size: 100% auto;
        background-repeat: no-repeat;
        min-height: 100vh;
    }
    .hero-content-panel {
        background: transparent; /* Use the black space from the image */
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none !important;
        padding-bottom: 3rem;
        padding-top: 18vh;
    }
}

.hero #cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.hero #cta-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.footer-custom {
    background: #121212;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

/* ===================================================================
 * 3. MAIN DASHBOARD - MODULE CARDS
 * =================================================================== */

.module-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    cursor: pointer;
    text-align: center;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .10) !important;
}

.module-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================================================================
 * 4. UTILITIES & HELPERS
 * =================================================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.loading-dual-ring {
    display: inline-block;
    width: 64px;
    height: 64px;
}

.loading-dual-ring:after {
    content: " ";
    display: block;
    width: 46px;
    height: 46px;
    margin: 8px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: loading-dual-ring 1.2s linear infinite;
}

@keyframes loading-dual-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar-custom .navbar-brand img {
    height: 100px;
}

/* Transitions */
body, .btn {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Utilities */
.border-dashed {
    border: 2px dashed #dee2e6;
}

.bg-light-purple {
    background-color: rgba(111, 66, 193, 0.08);
}

.text-purple {
    color: #6f42c1;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-white {
    background-color: #fff;
}