/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F8FAFC;
  color: #111827;
  transition: background-color .3s, color .3s;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Full Width Layout */
.container-fluid {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1400px) {
  .container-fluid.px-4 {
    padding-right: 4rem !important;
    padding-left: 4rem !important;
  }
}

.navbar, .card, footer {
  transition: background-color .3s, color .3s;
}

/* Buttons */
.btn-primary {
  background-color: #2563EB;
  border-color: #2563EB;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1E40AF;
  border-color: #1E40AF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-accent {
  background-color: #10B981;
  border-color: #10B981;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #059669;
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline-primary {
  color: #2563EB;
  border-color: #2563EB;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #2563EB;
  border-color: #2563EB;
  color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2563EB, #1E40AF);
  color: white;
  padding: 5rem 0;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2563EB !important;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

code {
  background: #F1F5F9;
  color: #DC2626;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

pre code {
  background: #1E293B;
  color: #E2E8F0;
  padding: 1rem;
  border-radius: 8px;
  display: block;
  overflow-x: auto;
}

/* Footer */
footer {
  background-color: #111827;
  color: #9CA3AF;
  padding: 2rem 0;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: #2563EB;
}

/* Utilities */
.shadow-sm {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.text-primary {
  color: #2563EB !important;
}

/* Dark Mode */
body.dark {
  background-color: #0F172A;
  color: #E2E8F0;
}

body.dark .navbar {
  background-color: rgba(30, 41, 59, 0.95) !important;
}

body.dark .navbar-brand,
body.dark .nav-link {
  color: #E2E8F0 !important;
}

body.dark .nav-link:hover {
  color: #60A5FA !important;
}

body.dark .card {
  background-color: #1E293B;
  color: #E2E8F0;
}

body.dark .card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark footer {
  background-color: #1E293B;
}

body.dark .hero {
  background: linear-gradient(135deg, #1E40AF, #0F172A);
}

body.dark code {
  background: #1E293B;
  color: #F87171;
}

body.dark .form-control {
  background-color: #1E293B;
  border-color: #374151;
  color: #E2E8F0;
}

body.dark .form-control:focus {
  background-color: #1E293B;
  border-color: #3B82F6;
  color: #E2E8F0;
}

body.dark .text-muted {
  color: #9CA3AF !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}
