/* 
   Hiper Mega Super Poderoso Advanced Design System - BigEscolaPro 2026 
   Mobile-First | High Performance | Accessibility Oriented
*/
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Palette - Vivid & Modern */
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --primary-light: #4895ef;
  --secondary: #7209b7;
  --accent: #f72585;

  --success: #06d6a0;
  --info: #4cc9f0;
  --warning: #fca311;
  --danger: #ef476f;

  --dark: #1b1b2f;
  --dark-glass: rgba(27, 27, 47, 0.95);
  --light: #f8f9fa;
  --white: #ffffff;

  /* Backgrounds */
  --bg-body: #f3f4f7;
  --bg-gradient: linear-gradient(135deg, #f3f4f7 0%, #eef1f5 100%);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  --glass-blur: blur(12px);

  /* Spacing & Sizes */
  --header-height: 70px;
  --border-radius: 16px;
  --touch-target: 48px;
}

/* Base Reset & Typography */
body {
  font-family: "Inter", sans-serif;
  background: var(--bg-body);
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(67, 97, 238, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(247, 37, 133, 0.05) 0%,
      transparent 20%
    );
  background-attachment: fixed;
  color: #2b2d42;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* 
   -------------------------------------------------------------------------
   🛡️ GLASSMORPHISM CARD SYSTEM
   -------------------------------------------------------------------------
*/
.glass-panel,
.glass-card,
.card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--glass-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(67, 97, 238, 0.15);
}

/* 
   -------------------------------------------------------------------------
   📱 MOBILE-FIRST NAVIGATION
   -------------------------------------------------------------------------
*/
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  color: #555 !important;
  padding: 10px 15px !important;
  border-radius: 8px;
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(67, 97, 238, 0.08);
}

/* Mobile Toggler */
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 0.5rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* 
   -------------------------------------------------------------------------
   📊 RESPONSIVE TABLES (The Game Changer)
   -------------------------------------------------------------------------
*/
.table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table {
  margin-bottom: 0;
  background: transparent !important;
}

.table thead th {
  background: rgba(67, 97, 238, 0.05);
  color: var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(67, 97, 238, 0.1);
  padding: 15px;
}

.table tbody td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #4a4a4a;
}

/* Mobile View: Cards Transformation */
@media screen and (max-width: 991px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }

  .table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-responsive tr {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 10px;
  }

  .table-responsive td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 40%;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
  }

  .table-responsive td:last-child {
    border-bottom: none;
    justify-content: center;
    padding-left: 0;
    margin-top: 10px;
  }

  .table-responsive td:before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 35%;
    white-space: nowrap;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
  }
}

/* 
   -------------------------------------------------------------------------
   💡 UTILITIES & UI ELEMENTS
   -------------------------------------------------------------------------
*/

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-sm {
  min-height: 32px;
  padding: 5px 15px;
  font-size: 0.8rem;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 15px;
  min-height: var(--touch-target);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
  background: #fff;
}

/* Dashboard Widgets */
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border-radius: var(--border-radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.stat-label {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Colors Utilities */
.text-vibrant {
  color: var(--primary) !important;
}
.bg-vibrant-soft {
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary);
}

/* Animation Utils */
.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Accessibility Focus */
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}
