/* --- START OF FILE style.css --- */

:root {
  /* --- BRAND PALETTE (Highlights Only) --- */
  --fluidcore-teal: #23797c;
  --fluidcore-accent: #5eff00;
  --fluidcore-orange: #ff5e00;
  --fluidcore-red: #ff947c;
  --fluidcore-gold: #c5a017;
  --fluidcore-cream: #ffeed4;
  
  /* --- APPLICATION PALETTE (Structural) --- */
  --app-bg: #ffffff;
  --app-sidebar-bg: #f8f9fa;      /* Very light grey for sidebars */
  --app-panel-bg: #ffffff;
  --app-header-bg: #e9e4da;       /* Darker grey for card headers */
  --app-border: #ced4da;          /* Standard input border color */
  --app-text-main: #212529;
  --app-text-muted: #6c757d;
  
  /* --- DIMENSIONS & SPACING (Refined for Density) --- */
  --radius-sm: 2px;               /* Sharper corners for "software" feel */
  --radius-md: 4px;
  --font-xs: 0.7rem;              /* Reduced from 0.75rem */
  --font-sm: 0.78rem;             /* Reduced from 0.8125rem (~12.5px) */
  --font-base: 0.825rem;          /* Reduced from 0.875rem (~13.2px) */
  
  /* Typography */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */

html {
    /* OPTIONAL: Force 95% zoom equivalent on desktop for compactness */
    font-size: 15px; 
}

body {
  font-family: var(--font-ui);
  font-size: var(--font-base);
  color: var(--app-text-main);
  background-color: var(--app-bg);
  padding-top: 2.8rem; 
  line-height: 1.35;    /* Tighter line height */
  /* Chrome-specific font smoothing for thinner text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Compact Headers */
h1, h2, h3, h4, h5, h6, .display-5 {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--fluidcore-teal);
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

h1, .display-5 { font-size: 1.35rem; color: var(--app-text-main); }
h2 { font-size: 1.15rem; border-bottom: 1px solid var(--app-border); padding-bottom: 0.2rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.9rem; font-weight: 700; }
h5, h6 { font-size: 0.8rem; font-weight: bold; text-transform: uppercase; color: var(--app-text-muted); }

p { margin-bottom: 0.6rem; }
hr { margin: 0.6rem 0; opacity: 0.15; }

/* Data Text */
code, pre, .table-data {
  font-family: var(--font-mono);
  font-size: var(--font-xs) !important;
}

pre {
  background: #f1f3f5;
  border: 1px solid var(--app-border);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.bg-fluid-teal { background-color: var(--fluidcore-teal) !important; }
.bg-fluid-accent { background-color: var(--fluidcore-accent) !important; }
.bg-fluid-orange { background-color: var(--fluidcore-orange) !important; }
.bg-fluid-red { background-color: var(--fluidcore-red) !important; }
.bg-fluid-gold { background-color: var(--fluidcore-gold) !important; }
.bg-fluid-cream { background-color: var(--fluidcore-cream) !important; }


/* ==========================================================================
   NAVBAR (Compact & Professional)
   ========================================================================== */
.navbar-custom {
    background-color: #2c3e50; 
    padding: 0.1rem 0.8rem;     /* Ultra slim navbar */
    min-height: 42px;           /* Force height restriction */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.navbar-custom .nav-link {
    font-size: 0.78rem;         /* Smaller nav text */
    color: #dcdcdc;
    padding: 0.3rem 0.6rem !important;
}

.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: var(--fluidcore-cream);
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.animate-pulse {
    animation: pulse-red 2s infinite;
}

/* ==========================================================================
   BUTTONS & INPUTS (Small & Statistical)
   ========================================================================== */

/* Override Bootstrap Buttons */
.btn {
    padding: 0.2rem 0.6rem;     /* Tighter padding */
    font-size: var(--font-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
    line-height: 1.4;
}
.btn-data { 
    padding: 0.15rem 0.4rem; 
    font-size: var(--font-xs);
    background-color: var(--fluidcore-cream);
    margin-bottom: 0.5rem;
    color: var(--app-text-main);
 }
 .btn-data:hover {
    background-color: var(--fluidcore-red);
 }

.btn-lg { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.btn-sm { padding: 0.1rem 0.4rem; font-size: var(--font-xs); }

/* Form Controls - Compact */
.form-control, .form-select {
    padding: 0.3rem 0.6rem;
    font-size: var(--font-sm);
    min-height: 30px;
}
.input-group-text {
    padding: 0.3rem 0.6rem;
    font-size: var(--font-sm);
}

/* Primary Action */
.btn-fluid-orange, .btn-primary {
    background-color: var(--fluidcore-orange);
    border-color: var(--fluidcore-orange);
    color: #fff;
}
.btn-fluid-orange:hover, .btn-primary:hover {
    background-color: #e65100;
    border-color: #e65100;
}

/* Secondary/Utility Actions */
.btn-outline-secondary, .btn-light {
    background-color: #fff;
    border-color: var(--app-border);
    color: var(--app-text-main);
}
.btn-outline-secondary:hover {
    background-color: #e9ecef;
    color: #000;
}

/* ==========================================================================
   LANDING PAGE
   ========================================================================== */
.landing-page {
    background-color: #0f1215; 
    height: 100vh;
    width: 100vw;
    overflow: hidden; 
    position: relative;
    font-family: 'Inter', sans-serif;
}

.hero-title {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #a2ffea 0%, var(--fluidcore-accent) 50%, #23797c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(94, 255, 0, 0.15); 
}

@media (min-width: 992px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    font-weight: 300;
}

.service-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.service-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--fluidcore-accent);
    transform: translateX(15px) scale(1.02); 
    box-shadow: 0 10px 30px -10px rgba(94, 255, 0, 0.3);
}

.pill-icon {
    width: 45px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0f1215; 
    margin-right: 12px;
}

.pill-title { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; color: #fff; }
.pill-desc { font-size: 0.7rem; color: #adb5bd; text-transform: uppercase; }
.pill-arrow { opacity: 0; transform: translateX(-20px); transition: all 0.3s ease; color: var(--fluidcore-accent); margin-left: 15px; }
.service-pill:hover .pill-arrow { opacity: 1; transform: translateX(0); }

/* Pill Gradients */
.bg-gradient-teal { background: linear-gradient(135deg, #a2ffea, var(--fluidcore-teal)); }
.bg-gradient-orange { background: linear-gradient(135deg, #ffd1b3, var(--fluidcore-orange)); }
.bg-gradient-gold { background: linear-gradient(135deg, #fff3cd, var(--fluidcore-gold)); }

.bg-glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.4; }
.orb-1 { width: 400px; height: 400px; background: var(--fluidcore-teal); top: -100px; right: -100px; }
.orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, var(--fluidcore-accent) 0%, rgba(0,0,0,0) 70%); bottom: -200px; left: -200px; opacity: 0.15; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }


/* ==========================================================================
   AUTH & FORMS
   ========================================================================== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.auth-header {
    background-color: var(--fluidcore-teal);
    color: #fff;
    padding: 1.2rem;
    text-align: center;
}

.btn-login {
    background: var(--fluidcore-orange,#134f5c);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: 0.25s;
}
.btn-login:hover {
    background: #0e3944;
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   CARDS & PANELS (Flat & Dense)
   ========================================================================== */
.card {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-md);
    box-shadow: none !important; 
    margin-bottom: 0.8rem; /* Reduced margin */
}

.card-header {
    padding: 0.4rem 0.8rem; /* Slimmer header */
    background-color: var(--app-header-bg);
    border-bottom: 1px solid var(--app-border);
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--app-text-main);
    line-height: 1.2;
}

.card-body {
    padding: 0.6rem 0.8rem; /* Very tight body padding */
    background-color: var(--app-panel-bg);
}

.card-footer {
    padding: 0.4rem 0.8rem;
    background-color: #f8f9fa;
    border-top: 1px solid var(--app-border);
    font-size: var(--font-xs);
}

/* ==========================================================================
   SIDEBARS (Rectangular, Neat, Compact)
   ========================================================================== */
.sidebar {
    width: 200px;
    padding: 12px 0; /* Vertical padding only, items fill width */
    background-color: var(--app-sidebar-bg); /* Use pale grey palette */
    border-right: 1px solid var(--app-border);
    display: flex;
    flex-direction: column;
    gap: 1px; /* Minimal gap for list feel */
}

.sidebar .nav-link {
    color: var(--app-text-main);
    padding: 0.25rem 0.8rem; /* Tight padding */
    font-size: 0.75rem;      /* Small, crisp font */
    border-radius: 0;        /* Rectangular */
    margin-bottom: 0;
    transition: background-color 0.15s ease;
    border-left: 3px solid transparent; /* Prepare for active marker */
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #000;
    text-decoration: none;
}

.sidebar .nav-link.active {
    background-color: #e2e6ea; 
    color: var(--fluidcore-teal);
    font-weight: 600;
    border-left: 3px solid var(--fluidcore-teal); /* Technical marker */
}

.sidebar-heading {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    padding-left: 0.8rem;
    color: var(--app-text-muted);
    font-weight: 700;
}

.main-content {
    flex: 1;
    padding: 20px;
}

/* ==========================================================================
   TABLES (Data Density)
   ========================================================================== */
.table {
    font-size: var(--font-sm);
    margin-bottom: 0;
}

.table th {
    background-color: #f1f3f5;
    font-weight: 600;
    border-bottom: 2px solid var(--app-border);
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
}

.table td {
    padding: 0.3rem 0.5rem;
    vertical-align: middle;
}

.col-topic {
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
    font-size: var(--font-xs);
}

.col-code {
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: var(--font-xs);
}

/* ==========================================================================
   COMPONENT: ANALYSIS DASHBOARD
   ========================================================================== */
.analysis-wrapper {
    background-color: #f8f9fa;
}

#analysis-sidebar {
    background-color: #fff;
    border-left: 1px solid var(--app-border);
}

#analysis-sidebar .accordion-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    background-color: #f8f9fa;
    color: var(--app-text-main);
    box-shadow: none;
}

#analysis-sidebar .accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: var(--fluidcore-teal);
    font-weight: 600;
}



/* ==========================================================================
   FLASH MESSAGES
   ========================================================================== */
.flash-container {
    position: fixed;
    top: 45px; /* Moved up slightly */
    left: 50%;
    transform: translateX(-50%);
    z-index: 6000;
    width: 100%;
    pointer-events: auto;
    display: flex;
    justify-content: center;
}

/* ALERT: anchor for the close button */
.flash-alert {
    position: relative;
    width: 50%;
    margin: 0;
    padding: 0.6rem 2.4rem 0.6rem 1rem;  /* extra right padding so text doesn't overlap close */
    font-size: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: auto;       /* ensure alert is interactive */
    background-clip: padding-box; /* keep background inside rounded corners if any */
}

/* CLOSE BUTTON: small, inside the alert and clickable */
.flash-close {
    position: absolute;
    top: -5px !important;
    right: 6px;
    transform: scale(0.7);
    opacity: 0.85;
    padding-bottom: 20px;
    border: none;
    z-index: 6100;              /* above the alert content */
    pointer-events: auto;       /* very explicit that it must be clickable */
}

/* hover state */
.flash-close:hover {
    opacity: 1;
    transform: scale(0.88);
}

/* If you still use bootstrap's fade animations, ensure the container keeps pointer events */
.fade.show .flash-alert {
    pointer-events: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-custom {
    background-color: #212529; 
    color: #8c959f;            
    padding-top: 2.5rem;       /* Reduced padding */
    padding-bottom: 1.5rem;
    margin-top: auto;          
    border-top: 1px solid #373b3e;
    font-size: 0.75rem;        /* Smaller font */
}

.footer-heading {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}


/* Bottom Bar */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.7rem;
}


/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.4rem;
}
.footer-links a {
    color: #8c959f;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--fluidcore-gold);
    transform: translateX(3px); /* Subtle shift on hover */
}

/* Brand Section */
.footer-brand-text {
    color: var(--fluidcore-gold);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
}
.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* Circle */
    color: var(--fluidcore-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon-btn:hover {
    background-color: var(--fluidcore-gold);
    border-color: var(--fluidcore-teal);
    color: #fff;
    transform: translateY(-2px);
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
}

/* Input Group for visual flair */
.footer-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.7rem;
}
.footer-input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--fluidcore-teal);
    color: #fff;
    box-shadow: none;
}