/* ===== SIDEBAR CUSTOM ===== */
.sidebar-custom {
  background: linear-gradient(to bottom, #1e3a8a 0%, #6366f1 100%);
  color: white;
}
/* ===== CUSTOM VARIABLES ===== */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* ===== NAVBAR STYLES ===== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--gray-100);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(99, 102, 241, 0.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== CARD STYLES ===== */
.card-custom {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header-custom {
  background: linear-gradient(to right, #1e3a8a 0%, #6366f1 100%);
  color: white;
  padding: 1.5rem;
  border: none;
  font-weight: 600;
}

/* ===== GLOBAL CARD HEADER OVERRIDE ===== */
.card-header,

.card-body-custom {
  padding: 2rem;
}

/* ===== BUTTON STYLES ===== */
.btn-primary-custom {
  background: linear-gradient(to right, #1e3a8a 0%, #6366f1 100%);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-primary);
}

.btn-secondary-custom {
  background-color: #6c757d;
  color: #fff;
  border: 1px solid #6c757d;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
  background-color: #5c636a;
  color: #fff;
  transform: translateY(-1px);
}


/* ===== FOOTER STYLES ===== */
.footer-custom {
  background: var(--dark-color);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-custom .container {
  text-align: center;
}

.footer-custom a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: white;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: var(--gradient-primary);
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-radius: 0 0 2rem 2rem;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ===== FORMS ===== */
.form-control-custom {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-label-custom {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.rounded-custom {
  border-radius: 16px;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .card-body-custom {
    padding: 1.5rem;
  }
  
  .container-custom {
    padding: 0 0.5rem;
  }
}

/* ===== LOGIN PARTIAL STYLES ===== */
.login-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.dropdown-menu-custom {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 0.5rem;
}

.dropdown-item-custom {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.dropdown-item-custom:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.navbar {
  padding: 0.5rem 1rem;
}

.container {
  max-width: 1200px;
}

.card {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: 16px;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-1px);
}

.btn-pill {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn-pill:hover {
  transform: translateY(-1px);
}

.btn-outline-secondary.btn-pill {
  border-width: 1px;
  background-color: #ffffff;
  color: var(--gray-700);
}

.btn-outline-secondary.btn-pill:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

