:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --accent-color: #0dcaf0;
  --light-bg: #f8f9fa;
  --success-color: #198754;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

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

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2c3e50;
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============= ANIMATIONS ============= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

/* ============= HERO SECTION ============= */
.hero-section-enhanced {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
  padding: 100px 0;
  color: #2c3e50;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-section-enhanced::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.hero-section-enhanced::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out reverse;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
}

.logo-hero {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 40px;
  filter: brightness(0.9);
}

.hero-title {
  font-weight: 800;
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: #1a3a52;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #555555;
  max-width: 550px;
  line-height: 1.8;
  font-weight: 400;
}

.illustration-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-placeholder {
  font-size: 18rem;
  color: rgba(0, 0, 0, 0.08);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.floating-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floating-card i {
  font-size: 1.2rem;
}

.floating-card.card-1 {
  align-self: flex-start;
  animation-delay: 0s;
}

.floating-card.card-2 {
  align-self: center;
  animation-delay: 0.3s;
}

.floating-card.card-3 {
  align-self: flex-end;
  animation-delay: 0.6s;
}

.btn-lg-custom {
  padding: 12px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-lg-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-light {
  background: white;
  color: #0d6efd;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  background: #f8f9fa;
  color: #0d6efd;
}

.btn-outline-light {
  color: #333;
  border: 2px solid #333;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  border-color: #333;
}

.text-white-50 {
  color: #777 !important;
}

.hover-link {
  transition: var(--transition);
}

.hover-link:hover {
  color: #0d6efd !important;
  text-decoration: underline !important;
}.btn-light:hover {
  background: #f5f5f5;
  color: #667eea;
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.hover-link {
  position: relative;
  transition: var(--transition);
}

.hover-link:hover {
  text-decoration: underline !important;
  opacity: 0.8;
}

/* ============= STATS SECTION ============= */
.stats-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
  position: relative;
}

.stat-card {
  padding: 40px 30px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border-top: 4px solid #667eea;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: #764ba2;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-number span {
  font-size: 1.8rem;
}

.stat-label {
  font-size: 1rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 700;
}

.stat-detail {
  color: #95a5a6;
  font-size: 0.85rem;
  margin-bottom: 0 !important;
  margin-top: 5px;
}

/* ============= FEATURES SECTION ============= */
.features-section {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 2.8rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: #7f8c8d;
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
  margin: 20px auto;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid #ecf0f1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card-hover:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card-hover:hover::before {
  transform: scaleX(1);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 25px;
  transition: var(--transition);
}

.feature-card-hover:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.bg-success-light {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.bg-primary-light {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.bg-info-light {
  background: rgba(13, 202, 240, 0.1);
  color: #0dcaf0;
}

.bg-danger-light {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.bg-warning-light {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.bg-secondary-light {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  margin-top: 10px;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature-list li {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #546e7a;
  display: flex;
  align-items: center;
}

.feature-list li strong {
  color: #2c3e50;
  font-weight: 600;
}

.feature-list i {
  font-size: 1rem;
}

.feature-card .btn {
  margin-top: auto;
  align-self: flex-start;
  transition: var(--transition);
}

.feature-card .btn:hover {
  transform: translateX(5px);
}

/* ============= PWA INSTALLATION SECTION ============= */
.install-app-section {
  background: var(--gradient-primary);
  border-radius: 20px;
  color: white;
}

.install-app-section .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  padding: 12px 20px !important;
  font-weight: 600;
}

.install-app-section .nav-link.active {
  color: white !important;
  border-bottom-color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 0 0;
}

.install-app-section .nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.05);
}

.step-number {
  background-color: white;
  color: #667eea;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* ============= CTA FINAL SECTION ============= */
.cta-final-section {
  background: var(--gradient-primary);
  border-radius: 20px;
  color: white;
  margin-bottom: 40px;
  padding: 60px 40px;
}

.cta-final-section h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cta-final-section .lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

.cta-final-section .btn-light {
  background: white;
  color: #667eea;
  font-weight: 600;
  border: none;
  transition: var(--transition);
}

.cta-final-section .btn-light:hover {
  background: #f5f5f5;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cta-final-section .btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
  font-weight: 600;
  transition: var(--transition);
}

.cta-final-section .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ============= NAVBAR ============= */
.navbar {
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
  background: white;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  font-weight: 700;
  color: #2c3e50 !important;
  font-size: 1.3rem;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: #667eea !important;
}

.logo-navbar {
  max-height: 50px;
  object-fit: contain;
}

.nav-link {
  font-weight: 600;
  color: #455a64 !important;
  transition: var(--transition);
  padding: 10px 15px !important;
  border-radius: 8px;
}

.nav-link:hover {
  color: #667eea !important;
  background: rgba(102, 126, 234, 0.08);
}

/* ============= BUTTONS ============= */
.btn {
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  border: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* ============= DASHBOARD LAYOUT ============= */
.dashboard-wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
  min-height: 100vh;
}

#sidebar {
  min-width: 250px;
  max-width: 250px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--sidebar-color, #1e3a5f) 0%, var(--sidebar-color-light, #2c5aa0) 100%);
  color: var(--sidebar-text-color, #fff);
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
}

#sidebar.active {
  margin-left: -250px;
}

@media (max-width: 768px) {
  #sidebar {
    margin-left: -250px;
    position: fixed;
    z-index: 1000;
  }
  #content {
    margin-left: 0;
  }
  #sidebar.active {
    margin-left: 0;
  }
  #sidebarCollapse span {
    display: none;
  }
}

#sidebar .sidebar-header {
  padding: 20px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  min-height: auto;
}

.user-profile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  color: inherit !important;
}

.user-profile-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.user-avatar-large {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.user-avatar-large:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-large i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.user-name-profile {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
}

#sidebar ul.components {
  padding: 15px 0;
  display: flex;
  flex-direction: column;
}

#sidebar ul li {
  position: relative;
}

#sidebar ul li a {
  padding: 12px 20px;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

#sidebar ul li a i {
  font-size: 1.1em;
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#sidebar ul li a .menu-text {
  margin-left: 12px;
  flex: 1;
}

#sidebar ul li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #4db8ff;
  padding-left: 20px;
}

#sidebar ul li.active > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid #4db8ff;
  font-weight: 600;
}

#sidebar ul li.logout-item {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

#sidebar ul li.logout-item a {
  color: rgba(255, 255, 255, 0.8);
}

#sidebar ul li.logout-item a:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border-left-color: #ff6b6b;
}

#content {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  transition: all 0.3s;
  background-color: #f8f9fa;
  margin-left: 0;
}

.dashboard-wrapper:not(.sidebar-collapsed) #content {
  margin-left: 250px;
}

@media (max-width: 992px) {
  .dashboard-wrapper:not(.sidebar-collapsed) #content {
    margin-left: 0;
  }
}

#content.active {
  margin-left: 0;
}

.dashboard-header {
  padding: 15px 30px;
  background: white;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-logo {
  display: flex;
  justify-content: center;
  flex: 1;
}

.logo-header {
  max-height: 40px;
  object-fit: contain;
}

.header-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card p {
  color: #6c757d;
  margin-bottom: 0;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.15;
  position: absolute;
  right: 20px;
  top: 20px;
}

/* ============= FORM ELEMENTS ============= */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: var(--transition);
  padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============= UTILITIES ============= */
.fw-600 {
  font-weight: 600;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-final-section {
    padding: 40px 20px;
  }

  .cta-final-section h2 {
    font-size: 1.8rem;
  }

  .stat-card {
    margin-bottom: 20px;
  }
}

/* Login Page Styles */
.card-header-logo {
  max-height: 60px;
  max-width: 250px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  drop-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
