/* ========================================================================= */
/*                              GLOBALS & RESETS                             */
/* ========================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* ========================================================================= */
/*                              UTILITIES                                  */
/* ========================================================================= */
.view {
  display: none;
}

.view.active {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mb-3 {
  margin-bottom: 1rem;
}

.muted {
  color: #6b7280;
  font-size: 0.95rem;
}

.chart-wrapper {
  width: 100%;
  max-width: 900px;
}

/* ========================================================================= */
/*                            COMPONENTS (UI ELEMENTS)                     */
/* ========================================================================= */

/* ------- Buttons ------- */
.btn,
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  background: #fff;
  color: #0b63d4;
  transition: all 0.3s;
}

.btn-primary {
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
  background-color: #fff;
  color: #667eea;
  border-color: #fff;
}

.btn-primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ------- Alerts ------- */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* ------- Forms ------- */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111827;
}

/* ------- Cards ------- */
.card {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card h5 {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.card h3 {
  margin: 10px 0 0;
  color: #111827;
}

.card:empty {
  display: none;
}

.card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  font-size: 14px;
}

.card ul li:last-child {
  border-bottom: none;
}

.card ul li strong {
  color: #0f172a;
  font-weight: 600;
}

.card + .card {
  margin-top: 12px;
}

.card form {
  margin-top: 8px;
}

/* ========================================================================= */
/*                          LAYOUT & NAVIGATION                            */
/* ========================================================================= */

/* ------- Navbar ------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a,
.nav-links button {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links button:hover {
  color: #007bff;
}

.nav-links span {
  font-size: 14px;
  color: #666;
}

.nav-links .logout-form {
  display: flex;
}

.nav-links .logout-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links .logout-btn:hover {
  color: #007bff;
}

/* ------- Dashboard Layout ------- */
.dashboard-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.sidebar {
  width: 230px;
  height: auto;
  min-height: calc(100vh - 160px);
  background: #111827;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  position: sticky;
  top: 20px;
}

.sidebar .profile {
  margin-bottom: 30px;
}

.sidebar .profile h4 {
  margin: 0;
}

.sidebar .profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
}

.nav-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-item:hover {
  background: #1f2937;
}

.nav-item.active {
  background: #0b63d4;
  color: #fff;
}

.main {
  flex: 1;
  padding: 30px;
  background: #f3f4f6;
  border-radius: 8px;
}

.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* ------- Footer ------- */
footer {
  background-color: #111827;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* ========================================================================= */
/*                              PAGE SECTIONS                              */
/* ========================================================================= */

/* ------- Hero Section ------- */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 30px;
  text-align: center;
}

.hero hgroup {
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: bold;
}

.hero p {
  font-size: 20px;
  margin: 0;
  opacity: 0.9;
  color: #f0f0f0;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------- Forms Containers (Login/Register/Contact) ------- */
.login-container,
.register-container,
.contact-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ------- Features Section ------- */
.features {
  padding: 60px 30px;
  background-color: white;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #111827;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #111827;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ------- How It Works Section ------- */
.how-it-works {
  padding: 60px 30px;
  background-color: #f8f9fa;
}

.how-it-works h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #111827;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  text-align: center;
  border-left: 4px solid #667eea;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.step-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #111827;
}

.step-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ------- CTA Section ------- */
.cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 30px;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta .btn-primary {
  background-color: white;
  color: #667eea;
}

/* ========================================================================= */
/*                           RESPONSIVE QUERIES                            */
/* ========================================================================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats {
    flex-direction: column;
  }

  .card {
    min-width: 100%;
  }
}

/* ========================================================================= */
/*                          BENTO & GLASSMORPHISM UI                         */
/* ========================================================================= */
body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background: #f0f4f8; /* Modern light background */
}

.bento-dashboard {
  max-width: 1400px;
  gap: 30px;
}

.glass-sidebar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  color: #333;
}

.glass-sidebar .nav-item {
  color: #555;
  font-weight: 500;
}

.glass-sidebar .nav-item.active {
  background: linear-gradient(135deg, #0f4c81 0%, #0b63d4 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(11, 99, 212, 0.3);
}

.glass-sidebar .nav-item:hover:not(.active) {
  background: rgba(11, 99, 212, 0.1);
  color: #0b63d4;
}

.glass-main {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.bento-header h2 {
  font-weight: 700;
  font-size: 28px;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.bento-item h5 {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.bento-large {
  grid-column: span 2;
}

@media(max-width: 992px) {
  .bento-large {
    grid-column: span 1;
  }
}

.bento-tall {
  grid-row: span 2;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 15px;
}
.clean-list li:last-child {
  border-bottom: none;
}

/* Floating Action Button (FAB) */
.fab-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
}

.fab-btn {
  background: linear-gradient(135deg, #0b63d4 0%, #1e3c72 100%);
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 35px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(11, 99, 212, 0.4);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.fab-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 30px rgba(11, 99, 212, 0.6);
}

/* Modal Overlay */
.fab-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.fab-modal-overlay.d-none {
  display: none;
}

.glass-modal {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.7);
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px) scale(0.95); opacity: 0;}
  to { transform: translateY(0) scale(1); opacity: 1;}
}

.fab-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.fab-modal-header h4 {
  margin: 0;
  font-weight: 700;
  color: #1a1a1a;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

/* Wizard inside modal */
.bento-wizard-steps {
  display: flex;
  margin-bottom: 20px;
  background: #f1f3f5;
  border-radius: 12px;
  overflow: hidden;
}

.bento-wizard-steps .step {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  transition: all 0.3s;
}

.bento-wizard-steps .step.active {
  background: #0b63d4;
  color: white;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.wizard-actions {
  margin-top: 20px;
}

.right-align { text-align: right; }
.space-between { display: flex; justify-content: space-between; }

.btn-modern {
  background: #0b63d4;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-modern:hover { background: #0a4fbc; }

.btn-modern-sec {
  background: #e9ecef;
  color: #495057;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-modern-sec:hover { background: #dee2e6; }

.btn-modern-submit {
  background: #59a14f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.d-none { display: none; }
