@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar-collapsed .main-content {
  margin-left: 64px;
}

.main-content {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* Header */
.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 260px;
  height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: left 0.3s ease;
}

.sidebar-collapsed .topbar {
  left: 64px;
}

.content {
  padding: 88px 24px 24px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Status badges colors */
.badge-open, .badge-active, .badge-sea, .badge-air, .badge-delivered { background: #dcfce7; color: #166534; }
.badge-under_review, .badge-in_progress, .badge-in_transit, .badge-info { background: #dbeafe; color: #1e40af; }
.badge-awarded { background: #dcfce7; color: #166534; }
.badge-closed, .badge-todo, .badge-planning, .badge-secondary { background: #f1f5f9; color: #475569; }
.badge-cancelled, .badge-blocked, .badge-delayed, .badge-high, .badge-urgent { background: #fee2e2; color: #991b1b; }
.badge-pending, .badge-customs, .badge-review, .badge-medium, .badge-land, .badge-on_hold { background: #fef3c7; color: #92400e; }
.badge-low { background: #f1f5f9; color: #475569; }

/* Progress bar */
.progress-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.progress-bar > div { height: 100%; background: #334155; border-radius: 3px; transition: width 0.3s ease; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-enter {
  animation: fadeIn 0.3s ease forwards;
}

/* Nav active state */
.nav-item.active {
  background: #f1f5f9;
  color: #334155;
  font-weight: 500;
}

.nav-item:hover:not(.active) {
  background: #f8fafc;
}

/* Submenu */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu.open {
  max-height: 300px;
}

/* Table */
.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #64748b;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .topbar { left: 0 !important; }
  .mobile-toggle { display: flex !important; }
}
