:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  min-height: 100%;
  margin: 0;
  background: #F8FAFC;
  color: #0F172A;
}

body {
  font-family: inherit;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

.sidebar-premium {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  overflow: hidden;
  transition: width 0.28s ease;
  position: relative;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.sidebar-premium:hover {
  width: 280px;
  max-width: 280px;
}

.sidebar-premium .sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.sidebar-premium .brand-title,
.sidebar-premium .nav-text,
.sidebar-premium .nav-secondary {
  display: inline-block;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, width 0.28s ease;
  white-space: nowrap;
}

.sidebar-premium:hover .brand-title,
.sidebar-premium:hover .nav-text,
.sidebar-premium:hover .nav-secondary {
  opacity: 1;
  width: auto;
}

.sidebar-premium .nav-link-premium {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem;
  border-radius: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
  position: relative;
  text-decoration: none;
}

.sidebar-premium .nav-link-premium:hover,
.sidebar-premium .nav-link-premium.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.sidebar-premium .nav-link-premium svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}

.sidebar-premium .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
}

.sidebar-premium .logo-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sidebar-premium .logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  display: grid;
  place-items: center;
}

.sidebar-premium .logo-mark svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.sidebar-premium .nav-link-premium {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.sidebar-premium .nav-link-premium:hover,
.sidebar-premium .nav-link-premium.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.sidebar-premium .nav-link-premium svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.sidebar-premium .nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.25s ease, width 0.28s ease;
}

.sidebar-premium:hover .nav-text,
.sidebar-premium:hover .brand-title {
  opacity: 1;
  width: auto;
}

.sidebar-premium .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.topbar input,
input[type="text"],
input[type="date"],
select,
textarea {
  border-radius: 1.25rem;
  border: 1px solid #E2E8F0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 0.9rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.12);
  transform: translateY(-0.5px);
}

.btn-premium,
.button-premium,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 20px 35px rgba(99, 102, 241, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-premium:hover,
.button-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(99, 102, 241, 0.22);
}

.card-premium,
.kpi-card-premium,
.wizard-step-premium,
.detail-card-premium {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-radius: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-premium:hover,
.kpi-card-premium:hover,
.wizard-step-premium:hover,
.detail-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 55px rgba(15, 23, 42, 0.12);
}

.table-row-premium:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.06) 0%, rgba(34, 197, 94, 0.05) 100%);
  transform: scale(1.01);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-chip--pending {
  background: #fef3c7;
  color: #b45309;
}

.status-chip--success {
  background: #dcfce7;
  color: #166534;
}

.status-chip--info {
  background: #dbeafe;
  color: #1d4ed8;
}

.fade-in {
  animation: fadeIn 0.55s ease-out both;
}

.slide-up {
  animation: slideUp 0.45s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1280px) {
  .sidebar-premium {
    width: 72px;
    max-width: 72px;
  }
}

@media (max-width: 768px) {
  .sidebar-premium {
    width: 0;
    max-width: 0;
  }

  .sidebar-premium:hover {
    width: 240px;
  }
}
