/* =============================================
   CYBERFORT 2025 - Master Theme Loader
   =============================================

   This is the main theme file that imports all
   theme modules in the correct order.

   To change colors/variables: Edit theme/variables.css
   To modify components: Edit theme/components.css
   To add animations: Edit theme/animations.css
   To add utilities: Edit theme/utilities.css

   ============================================= */

/* 1. Import CSS Variables (Must be first) */
@import url('theme/variables.css');

/* 2. Import Base Components */
@import url('theme/components.css');

/* 3. Import Animations & Effects */
@import url('theme/animations.css');

/* 4. Import Page-Specific Styles */
@import url('theme/chatbot-page.css');
@import url('theme/dashboard.css');

/* 5. Import Mobile Styles */
@import url('theme/chatbot-mobile.css');

/* 6. Import Utility Classes (Must be last for override priority) */
@import url('theme/utilities.css');

/* =============================================
   GLOBAL BASE STYLES
   ============================================= */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--cyber-text);
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--cyber-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--cyber-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--cyber-accent);
    text-shadow: 0 0 5px var(--cyber-glow);
}

/* Selection Styles */
::selection {
    background: var(--cyber-primary);
    color: var(--cyber-dark);
}

::-moz-selection {
    background: var(--cyber-primary);
    color: var(--cyber-dark);
}

/* Focus Styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--cyber-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* =============================================
   LAYOUT CONTAINERS
   ============================================= */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-lg);
}

/* =============================================
   PAGE SPECIFIC OVERRIDES
   ============================================= */

/* Cyber Body Background - Formal Style */
.cyber-body {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--cyber-text);
    font-family: var(--font-primary);
    position: relative;
    overflow-x: hidden;
}

/* Optional subtle grid for professional look */
.cyber-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--cyber-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyber-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3; /* Much more subtle for professional look */
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Mobile First Approach */
@media (min-width: 576px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-2xl);
    }
}

@media (min-width: 992px) {
    .container {
        padding: 0 var(--space-3xl);
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 var(--space-4xl);
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    body {
        background: white;
        color: black;
    }

    .no-print {
        display: none !important;
    }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--cyber-primary);
    color: var(--cyber-dark);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 100;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: var(--space-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --cyber-primary: #00ffff;
        --cyber-text: #ffffff;
        --cyber-bg-primary: #000000;
        --cyber-border: #ffffff;
    }
}

/* =============================================
   THEME SWITCHING (Future Enhancement)
   ============================================= */

/* Light Theme Toggle */
body[data-theme="light"] {
    /* Variables are already defined in variables.css */
    /* Just need to apply the data attribute via JS */
}

/* Dark Theme (Default) */
body[data-theme="dark"] {
    /* Default theme, no changes needed */
}