/* Layout */
.container { max-width: var(--container-max); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .lg\:col-span-1 { grid-column: span 1; }
  .lg\:col-span-2 { grid-column: span 2; }
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.site-header .logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header .logo-box {
  width: auto;
  height: auto;
  /* background: var(--primary); */
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}
.site-header .logo-title { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.site-header .logo-desc { font-size: 0.75rem; color: var(--muted-foreground); margin: 0; }
.site-header nav.main-nav { display: none; padding: 1rem 0; }
.site-header nav.main-nav .nav-inner { display: flex; align-items: center; gap: 2rem; }
.site-header nav.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}
.site-header nav.main-nav a:hover,
.site-header nav.main-nav a.active { color: var(--primary); }
.site-header .nav-item-dropdown { position: relative; }
.site-header .nav-item-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 14rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.site-header .nav-item-dropdown:hover .dropdown { opacity: 1; visibility: visible; }
.site-header .dropdown .dropdown-inner { padding: 0.5rem 0; }
.site-header .dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
.site-header .dropdown a:hover { background: var(--secondary); color: var(--primary); }
@media (min-width: 768px) {
  .site-header nav.main-nav { display: block; }
  .site-header .mobile-menu-btn { display: none; }
}
.site-header .mobile-menu-btn {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}
.site-header .mobile-nav {
  display: none;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}
.site-header .mobile-nav.open { display: block; }
.site-header .mobile-nav .mobile-nav-inner { display: flex; flex-direction: column; gap: 0.5rem; }
.site-header .mobile-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  color: var(--foreground);
}
.site-header .mobile-nav a:hover { background: var(--secondary); }
.site-header .mobile-nav a.active { background: var(--primary); color: #fff; }
.site-header .mobile-nav .sub-items { margin-left: 1rem; margin-top: 0.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.site-header .mobile-nav .sub-items a { font-size: 0.875rem; color: var(--muted-foreground); }
.site-header .mobile-nav .sub-items a:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-default, .btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-default:hover, .btn-primary:hover { background: #1e3a8a; }
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-ghost { background: transparent; border: none; }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-sm { height: 2rem; padding: 0 0.75rem; font-size: 0.875rem; }
.btn-lg { height: 2.5rem; padding: 0 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--primary); }

/* Cards */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.card-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card-header.bg-secondary { background: var(--secondary); padding: 1.5rem; }
.card-title { font-size: 1.125rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card-title.text-2xl { font-size: 1.5rem; }
.card-description { color: var(--muted-foreground); font-size: 0.875rem; margin: 0; }
.card-content { padding: 0 1.5rem 1.5rem; }
.card-content:only-child { padding: 1.5rem; }
.card:hover.card-hover { box-shadow: 0 14px 32px rgba(0,0,0,0.12); transition: box-shadow 0.2s; }
.aspect-video { aspect-ratio: 16/10; overflow: hidden; }
.aspect-video img { width: 100%; height: 100%; object-fit: cover; }
.aspect-video img:hover { transform: scale(1.05); transition: transform 0.3s; }

/* Hero overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 64, 175, 0.45);
  pointer-events: none;
}

/* Hero section */
.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(to right, var(--primary), #2563eb);
  overflow: hidden;
  margin-bottom: 2rem;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
}
.hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.hero .hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.features-section .grid { gap: 1.25rem; }
.feature-card .card-content { text-align: center; }
.feature-icon { display: flex; justify-content: center; margin-bottom: 0.5rem; color: var(--primary); font-size: 1.5rem; }
.feature-title { font-weight: 600; margin-bottom: 0.25rem; }
.feature-desc { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.feature-metric { font-size: 0.75rem; font-weight: 600; color: var(--primary); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}
.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.input-wrap input { padding-left: 2.75rem; }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  width: 100%;
  height: 2.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  background: var(--input-background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
textarea { min-height: 100px; resize: vertical; padding: 0.5rem 0.75rem; }
.checkbox-wrap { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-wrap input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--primary); cursor: pointer; }
.checkbox-wrap label { margin: 0; cursor: pointer; font-size: 0.875rem; }

/* Breadcrumb */
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 0; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb .sep { color: var(--muted-foreground); }
.breadcrumb .current { color: var(--foreground); font-weight: 500; }

/* Tabs (Profil) */
.tabs-wrap { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 8.75rem; z-index: 40; }
.tabs-list {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1rem 0;
  background: var(--muted);
  border-radius: var(--radius-xl);
  padding: 3px;
}
.tabs-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  color: var(--muted-foreground);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.tabs-list a:hover { color: var(--foreground); }
.tabs-list a.active { background: var(--card); color: var(--foreground); border-color: var(--border); }

/* Hero section (page title) */
.page-hero {
  background: linear-gradient(to right, var(--primary), #2563eb);
  color: #fff;
  padding: 3rem 0;
}
.page-hero h1 { margin: 0 0 1rem; font-size: 2.25rem; color: #fff; }
.page-hero p { margin: 0; font-size: 1.25rem; color: rgba(255,255,255,0.9); }

/* Event Card */
.event-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.event-date-box {
  flex-shrink: 0;
  width: 54px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.event-date-box i, .event-date-box .icon {
  font-size: 0.75rem;
  margin-bottom: 2px;
  opacity: 0.9;
}
.event-date-box .day {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.event-info {
  flex-grow: 1;
}
.event-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background: #334155;
  color: #fff;
  margin-top: 5rem;
  padding: 3rem 0;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer .footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.site-footer .footer-brand .logo-box {
  width: auto;
  height: auto;
  /* background: var(--primary); */
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.site-footer h4 { font-size: 1rem; margin: 0 0 1rem; font-weight: 700; }
.site-footer .text-sm { font-size: 0.875rem; color: #94a3b8; }
.site-footer .text-sm a { color: #94a3b8; }
.site-footer .text-sm a:hover { color: #fff; }
.site-footer .footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Admin layout */
.admin-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-body { display: flex; min-height: calc(100vh - 9rem); }
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--muted);
  border-right: 1px solid var(--border);
  padding: 1rem;
}
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--foreground);
}
.admin-sidebar nav a:hover { background: var(--accent); color: var(--accent-foreground); }
.admin-sidebar nav a.active { background: var(--primary); color: #fff; border: 1px solid transparent; }
.admin-main { flex: 1; padding: 1rem; }
@media (max-width: 1024px) {
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; position: fixed; top: 0; left: 0; height: 100vh; z-index: 60; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
}
.site-footer .footer-bottom p { margin: 0; font-size: 0.875rem; color: #94a3b8; }
.site-footer .footer-social { display: flex; gap: 1rem; }
.site-footer .footer-social a { color: #94a3b8; }
.site-footer .footer-social a:hover { color: #fff; }
.site-footer .footer-social svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr 1fr 2fr; }
}

/* Custom select (doc-report) */
.select-wrap { position: relative; }
.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  background: var(--input-background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--foreground);
}
.select-trigger:hover { border-color: var(--ring); }
.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 20;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}
.select-dropdown.open { display: block; }
.select-dropdown [data-option] {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.select-dropdown [data-option]:hover { background: var(--secondary); }

/* Admin layout */
.admin-wrap { min-height: 100vh; background: var(--secondary); }
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.admin-sidebar {
  width: 16rem;
  background: #fff;
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 4rem);
  position: sticky;
  top: 4rem;
  padding: 1rem;
}
.admin-sidebar.hidden { display: none; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s;
}
.admin-sidebar a:hover { background: var(--secondary); }
.admin-sidebar a.active { background: var(--primary); color: #fff; }
.admin-main { flex: 1; padding: 1.5rem; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 80; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.modal-dialog { position: relative; max-width: 36rem; margin: 8vh auto; z-index: 81; }
/* Utilities */
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.rounded-xl { border-radius: 0.75rem; }
.border-0 { border: 0; }
.border-2 { border-width: 2px; }
.border-primary { border-color: var(--primary); }
.bg-blue-50 { background: #eff6ff; }
.bg-primary { background: var(--primary); }
.text-white { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.list-disc.list-inside ul { padding-left: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.sm\:flex-row { flex-direction: row; }
@media (min-width: 640px) { .sm\:flex-row { flex-direction: row; } }
