/* BootVix - Tema moderno e limpo (Master + Cliente) */
:root {
  --sidebar-width: 260px;
  --sidebar-bg: #1e293b;
  --sidebar-text: #e2e8f0;
  --sidebar-hover: #334155;
  --header-bg: #fff;
  --brand: #6366f1;
  --brand-hover: #4f46e5;
  --body-bg: #f8fafc;
  --card-bg: #fff;
  --card-shadow: 0 1px 3px rgba(0,0,0,.06);
  --border-light: #e2e8f0;
  --text-muted: #64748b;
}

* { box-sizing: border-box; }
body { min-height: 100vh; background: var(--body-bg); color: #334155; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 1030;
  overflow-y: auto;
  transition: transform .25s ease;
}
.sidebar-brand {
  padding: 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-nav { padding: .75rem 0; }
.sidebar-nav .nav-link {
  color: var(--sidebar-text);
  padding: .65rem 1.25rem;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.sidebar-nav .nav-link:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--sidebar-hover); color: #a5b4fc; border-left-color: var(--brand); }
.sidebar-nav .nav-link i { width: 1.25rem; text-align: center; opacity: .95; }

/* Main */
.main-wrap {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-header {
  background: var(--header-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.main-header .header-clock {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: .9rem;
}
.main-content { flex: 1; padding: 1.5rem; }
.breadcrumb { background: transparent; padding: 0; margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--brand); }

/* Cards */
.card { border: none; box-shadow: var(--card-shadow); border-radius: 12px; background: var(--card-bg); }
.card-header { background: var(--card-bg); border-bottom: 1px solid var(--border-light); font-weight: 600; border-radius: 12px 12px 0 0; padding: 1rem 1.25rem; }
.table { background: var(--card-bg); }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.alert { border: none; border-radius: 10px; }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f0f4ff 0%, #e0e7ff 50%, #f8fafc 100%);
  padding: 2rem;
}
.login-card {
  max-width: 400px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid var(--border-light);
}
.login-card .card-header { font-size: 1.25rem; text-align: center; padding: 1.5rem; background: #fff; border-radius: 16px 16px 0 0; }

/* Mobile */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1029;
    display: none;
  }
  .sidebar-overlay.show { display: block; }
}
