/* 
 * madjuoFinX Sci-Fi CSS Framework
 * Theme: Blue & Orange Futuristic Design
 * Author: madjuoFinX Development Team
 */

/* Import Futuristic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&family=Rajdhani:wght@400;600;700&family=Inter:wght@300;400;500;600&family=Poppins:wght@300;400;500;600&family=Roboto+Mono:wght@300;400;500;600&display=swap');

/* ===== ROOT VARIABLES - SCI-FI COLOR PALETTE ===== */
:root {
  /* Primary Colors */
  --neon-blue: #00BFFF;
  --cyber-orange: #FF8C00;
  --dark-space-grey: #0E1117;
  --silver-white: #E6E8EB;
  
  /* Gradient Colors */
  --gradient-glow-start: #0E1117;
  --gradient-glow-end: #10253E;
  --blue-gradient-start: #00BFFF;
  --blue-gradient-end: #0080FF;
  --orange-gradient-start: #FF8C00;
  --orange-gradient-end: #FFB347;
  
  /* Secondary Colors */
  --deep-space-blue: #0A1628;
  --electric-blue: #1E90FF;
  --neon-cyan: #00FFFF;
  --warm-orange: #FF7F50;
  --dark-orange: #CC7000;
  
  /* Neutral Colors */
  --space-black: #000000;
  --cosmic-grey: #2C3E50;
  --light-silver: #F8F9FA;
  --medium-grey: #6C757D;
  --border-glow: rgba(0, 191, 255, 0.3);
  
  /* Glow Effects */
  --blue-glow: 0 0 20px rgba(0, 191, 255, 0.6);
  --orange-glow: 0 0 20px rgba(255, 140, 0, 0.6);
  --subtle-glow: 0 0 10px rgba(0, 191, 255, 0.3);
  --intense-glow: 0 0 30px rgba(0, 191, 255, 0.8);
  
  /* Typography */
  --font-heading: 'Orbitron', 'Exo 2', sans-serif;
  --font-content: 'Inter', 'Poppins', sans-serif;
  --font-data: 'Roboto Mono', monospace;
  --font-navigation: 'Rajdhani', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-round: 50%;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===== GLOBAL RESET AND BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-content);
  background: linear-gradient(135deg, var(--gradient-glow-start) 0%, var(--gradient-glow-end) 100%);
  color: var(--silver-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
    linear-gradient(90deg, transparent 49%, rgba(0, 191, 255, 0.05) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(0, 191, 255, 0.05) 50%, transparent 51%);
  background-size: 200px 200px, 200px 200px, 50px 50px, 50px 50px;
  animation: backgroundMove 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes backgroundMove {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-50px, -50px); }
  50% { transform: translate(-100px, 0); }
  75% { transform: translate(-50px, 50px); }
  100% { transform: translate(0, 0); }
}

/* ===== TYPOGRAPHY SYSTEM - MOBILE FIRST ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile First Typography - Start with mobile sizes */
h1 {
  font-size: 1.5rem; /* 24px mobile */
  color: var(--neon-blue);
  text-shadow: var(--blue-glow);
}

h2 {
  font-size: 1.25rem; /* 20px mobile */
  color: var(--electric-blue);
}

h3 {
  font-size: 1.125rem; /* 18px mobile */
  color: var(--silver-white);
}

h4 {
  font-size: 1rem; /* 16px mobile */
  color: var(--silver-white);
}

h5, h6 {
  font-size: 0.875rem; /* 14px mobile */
  color: var(--medium-grey);
}

/* Tablet Typography */
@media (min-width: 768px) {
  h1 {
    font-size: 2rem; /* 32px tablet */
  }

  h2 {
    font-size: 1.5rem; /* 24px tablet */
  }

  h3 {
    font-size: 1.25rem; /* 20px tablet */
  }

  h4 {
    font-size: 1.125rem; /* 18px tablet */
  }

  h5, h6 {
    font-size: 1rem; /* 16px tablet */
  }
}

/* Desktop Typography */
@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem; /* 40px desktop */
  }

  h2 {
    font-size: 2rem; /* 32px desktop */
  }

  h3 {
    font-size: 1.5rem; /* 24px desktop */
  }

  h4 {
    font-size: 1.25rem; /* 20px desktop */
  }

  h5, h6 {
    font-size: 1rem; /* 16px desktop */
  }
}

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

.text-glow {
  text-shadow: var(--blue-glow);
}

.text-orange-glow {
  color: var(--cyber-orange);
  text-shadow: var(--orange-glow);
}

.text-data {
  font-family: var(--font-data);
  font-weight: 500;
  color: var(--neon-cyan);
}

/* ===== UTILITY CLASSES ===== */
.neon-blue { color: var(--neon-blue); }
.cyber-orange { color: var(--cyber-orange); }
.silver-white { color: var(--silver-white); }
.electric-blue { color: var(--electric-blue); }

.bg-dark-space { background-color: var(--dark-space-grey); }
.bg-deep-space { background-color: var(--deep-space-blue); }
.bg-cosmic { background-color: var(--cosmic-grey); }

.glow-blue { box-shadow: var(--blue-glow); }
.glow-orange { box-shadow: var(--orange-glow); }
.glow-subtle { box-shadow: var(--subtle-glow); }

/* ===== GLASS MORPHISM EFFECTS ===== */
.glass {
  background: rgba(14, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: var(--radius-md);
}

.glass-intense {
  background: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 191, 255, 0.4);
  box-shadow: var(--subtle-glow);
}

/* ===== BUTTON SYSTEM - MOBILE FIRST ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem; /* 10px 16px mobile */
  font-family: var(--font-navigation);
  font-weight: 600;
  font-size: 0.75rem; /* 12px mobile */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  outline: none;
}

/* Tablet Buttons */
@media (min-width: 768px) {
  .btn {
    padding: 0.75rem 1.25rem; /* 12px 20px tablet */
    font-size: 0.875rem; /* 14px tablet */
    border-radius: var(--radius-md);
  }
}

/* Desktop Buttons */
@media (min-width: 1024px) {
  .btn {
    padding: var(--space-sm) var(--space-lg); /* 8px 24px desktop */
    font-size: 0.9rem; /* 14.4px desktop */
  }
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Primary Button - Neon Blue */
.btn-primary {
  background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-gradient-end));
  color: white;
  border: 1px solid var(--neon-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--blue-glow);
  background: linear-gradient(135deg, var(--electric-blue), var(--neon-blue));
}

/* Secondary Button - Cyber Orange */
.btn-secondary {
  background: linear-gradient(135deg, var(--orange-gradient-start), var(--orange-gradient-end));
  color: white;
  border: 1px solid var(--cyber-orange);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--orange-glow);
  background: linear-gradient(135deg, var(--cyber-orange), var(--warm-orange));
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
}

.btn-ghost:hover {
  background: rgba(0, 191, 255, 0.1);
  box-shadow: var(--subtle-glow);
  color: white;
}

/* Large Button */
.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
}

/* Small Button */
.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
}

/* ===== CARD SYSTEM - MOBILE FIRST ===== */
.card {
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.875rem; /* 14px mobile */
  margin-bottom: 1rem; /* 16px mobile */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Tablet Cards */
@media (min-width: 768px) {
  .card {
    padding: 1.25rem; /* 20px tablet */
    margin-bottom: 1.25rem; /* 20px tablet */
    border-radius: var(--radius-lg);
  }
}

/* Desktop Cards */
@media (min-width: 1024px) {
  .card {
    padding: var(--space-lg); /* 24px desktop */
    margin-bottom: var(--space-lg); /* 24px desktop */
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  transition: left 0.5s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--subtle-glow);
  border-color: rgba(0, 191, 255, 0.4);
}

.card:hover::before {
  left: 100%;
}

.card-header {
  border-bottom: 1px solid rgba(0, 191, 255, 0.2);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--neon-blue);
  margin-bottom: var(--space-sm);
}

.card-body {
  color: var(--silver-white);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-navigation);
  font-weight: 600;
  color: var(--silver-white);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-content);
  font-size: 1rem;
  color: var(--silver-white);
  background: rgba(14, 17, 23, 0.8);
  border: 2px solid rgba(0, 191, 255, 0.3);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--neon-blue);
  box-shadow: var(--subtle-glow);
  background: rgba(14, 17, 23, 0.9);
}

.form-control::placeholder {
  color: var(--medium-grey);
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
  background: rgba(14, 17, 23, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 191, 255, 0.2);
  padding: var(--space-md) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--neon-blue);
  text-decoration: none;
  text-shadow: var(--blue-glow);
}

.nav-link {
  font-family: var(--font-navigation);
  font-weight: 600;
  color: var(--silver-white);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-blue);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-blue);
  background: rgba(0, 191, 255, 0.1);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--neon-blue);
  background: rgba(0, 191, 255, 0.15);
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 280px;
  height: calc(100vh - 70px);
  background: rgba(14, 17, 23, 0.95);
  backdrop-filter: blur(15px);
  border-right: 1px solid rgba(0, 191, 255, 0.2);
  padding: var(--space-lg);
  overflow-y: auto;
  z-index: var(--z-sticky);
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.sidebar-hidden {
  transform: translateX(-100%);
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--silver-white);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), transparent);
  transition: width 0.3s ease;
}

.sidebar-item:hover {
  background: rgba(0, 191, 255, 0.1);
  color: var(--neon-blue);
  transform: translateX(5px);
}

.sidebar-item:hover::before {
  width: 4px;
}

.sidebar-item.active {
  background: rgba(0, 191, 255, 0.15);
  color: var(--neon-blue);
  box-shadow: var(--subtle-glow);
}

.sidebar-item.active::before {
  width: 4px;
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  margin-right: var(--space-md);
  transition: all 0.3s ease;
}

.sidebar-item:hover .sidebar-icon {
  filter: drop-shadow(0 0 5px var(--neon-blue));
  transform: scale(1.1);
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  margin-left: 280px;
  margin-top: 70px;
  padding: var(--space-xl);
  min-height: calc(100vh - 70px);
  transition: margin-left 0.3s ease;
}

.main-content.sidebar-hidden {
  margin-left: 0;
}

/* ===== MODAL SYSTEM ===== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: rgba(14, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--blue-glow);
  transform: scale(0.7) translateY(50px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show .modal {
  transform: scale(1) translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 191, 255, 0.8); }
  100% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.5); }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animation Classes */
.pulse { animation: pulse 2s infinite; }
.glow-animation { animation: glow 2s infinite; }
.slide-in-right { animation: slideInRight 0.5s ease-out; }
.slide-in-left { animation: slideInLeft 0.5s ease-out; }
.fade-in-up { animation: fadeInUp 0.6s ease-out; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .main-content {
    padding: var(--space-md);
  }
  
  .card {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  .modal {
    margin: var(--space-md);
    max-width: calc(100vw - 2rem);
  }
}

/* ===== LOADING STATES ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 191, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--neon-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 17, 23, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 191, 255, 0.3);
  border-top: 4px solid var(--neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.m-0 { margin: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }

/* ===== MOBILE-FIRST DASHBOARD IMPROVEMENTS ===== */

/* Base mobile styles for stats cards */
.stat-icon {
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-data {
    line-height: 1.2;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

/* Mobile dashboard cards spacing */
.dashboard-card {
    margin-bottom: 0.75rem;
}

/* Tablet improvements (768px+) */
@media (min-width: 768px) {
    .stat-icon {
        min-width: 40px;
    }
    
    .text-data {
        font-size: 1.125rem !important;
    }
    
    .form-label {
        font-size: 0.8rem !important;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    /* Card padding improvements */
    .card-body.p-2 {
        padding: 1rem !important;
    }
}

/* Desktop improvements (1024px+) */
@media (min-width: 1024px) {
    .stat-icon {
        min-width: 48px;
    }
    
    .stat-icon i {
        font-size: 1.5rem !important;
    }
    
    .text-data {
        font-size: 1.25rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
    }
    
    .dashboard-card {
        margin-bottom: 1.25rem;
    }
    
    /* Enhanced desktop card padding */
    .card-body.p-2 {
        padding: 1.5rem !important;
    }
}