* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --text-dark: #1e293b;
  --text-light: #475569;
  --bg-light: #f1f5f9;
  --bg-lighter: #f8fafc;
  --border-color: #e2e8f0;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f1f5f9 0%, #f0f4f8 100%);
  color: var(--text-dark);
  line-height: 1.6;
}

html, body, #app {
  height: 100%;
}

/* Layout */
.container-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 256px;
  height: 100vh;
  background: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
  z-index: 40;
  overflow-y: auto;
  padding: 1.5rem;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar-header {
  margin-bottom: 2rem;
  padding-top: 3rem;
}

.sidebar-header h1 {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.sidebar-header p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.nav-menu {
  list-style: none;
  space-y: 0.5rem;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-dark);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-link:hover {
  background-color: var(--bg-light);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sidebar-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.sidebar-footer p {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
}

.mobile-menu-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: white;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: none;
}

.mobile-menu-btn:hover {
  background-color: var(--bg-light);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 30;
  display: none;
}

.sidebar-overlay.visible {
  display: block;
}

main {
  flex: 1;
  width: 100%;
}

.content {
  width: 100%;
}

@media (min-width: 768px) {
  main {
    margin-left: 256px;
  }

  .sidebar.hidden {
    transform: translateX(0);
  }
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-light);
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto 3rem;
}

.carousel-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 0.8s ease-in-out;
}

/* Carousel Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes rotateIn {
  from { transform: rotate(-10deg) scale(0.9); opacity: 0; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

@keyframes blurInEffect {
  from { filter: blur(10px); opacity: 0; }
  to { filter: blur(0); opacity: 1; }
}

@keyframes mosaicIn {
  0% { clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%); opacity: 0; }
  25% { clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%); opacity: 0.5; }
  50% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); opacity: 0.75; }
  100% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); opacity: 1; }
}

@keyframes flipIn {
  from { transform: rotateY(90deg); opacity: 0; }
  to { transform: rotateY(0); opacity: 1; }
}

.carousel-image.fade { animation: fadeIn 0.8s ease-in-out; }
.carousel-image.slide-left { animation: slideInLeft 0.8s ease-in-out; }
.carousel-image.slide-right { animation: slideInRight 0.8s ease-in-out; }
.carousel-image.scale { animation: scaleIn 0.8s ease-in-out; }
.carousel-image.rotate { animation: rotateIn 0.8s ease-in-out; }
.carousel-image.blur-in { animation: blurInEffect 0.8s ease-in-out; }
.carousel-image.mosaic { animation: mosaicIn 0.8s ease-in-out; }
.carousel-image.flip { animation: flipIn 0.8s ease-in-out; perspective: 1000px; }

/* Carousel Controls */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.75rem;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.carousel-nav-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
  left: -4rem;
}

.carousel-nav-btn.next {
  right: -4rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-indicator.active {
  width: 2rem;
  background-color: var(--primary-color);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Content Sections */
.section {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.75rem;
}

.section h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section ul {
  list-style: none;
  space-y: 0.5rem;
}

.section li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.section li::before {
  content: "•";
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-weight: bold;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--primary-color);
  border-color: transparent;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-full {
  width: 100%;
  padding: 0.75rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .carousel-nav-btn.prev {
    left: -2rem;
  }

  .carousel-nav-btn.next {
    right: -2rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
  }

  .mobile-menu-btn {
    display: block;
  }

  .carousel-nav-btn.prev,
  .carousel-nav-btn.next {
    position: static;
    transform: none;
    margin-top: 1rem;
  }

  .carousel-nav-btn.prev {
    margin-right: 0.5rem;
  }

  .carousel-nav-btn.next {
    margin-left: 0.5rem;
  }

  .page-header h1 {
    font-size: 1.875rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

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

.mb-8 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-6 {
  gap: 1.5rem;
}

.hidden {
  display: none;
}
