/* ========================================================
   ADMIN DASHBOARD STYLESHEET — DECKS NÁUTICA
   Official Brand Blue Theme (#0B55AD)
   ======================================================== */

:root {
  --admin-sidebar-bg: #073c7e;
  --admin-sidebar-text: #d0e2ff;
  --admin-sidebar-active: #ffffff;
  --admin-topbar-bg: #ffffff;
  --admin-content-bg: #f4f7fb;
  --admin-primary: #0b55ad;
}

body.admin-body {
  background-color: var(--admin-content-bg);
  min-height: 100vh;
  display: flex;
}

/* SIDEBAR */
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar-bg);
  color: var(--admin-sidebar-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 4px 0 15px rgba(7, 60, 126, 0.1);
}

.admin-sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-sidebar-brand img {
  height: 38px;
}

.admin-nav {
  padding: 1rem 0;
  flex-grow: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.4rem;
  color: var(--admin-sidebar-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  position: relative;
}

.admin-nav-item i {
  font-size: 1.15rem;
  width: 22px;
}

.admin-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.admin-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ffffff;
}

.admin-sidebar-footer {
  padding: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* MAIN CONTENT WRAPPER */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--admin-topbar-bg);
  padding: 0.9rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content {
  padding: 2rem;
  flex-grow: 1;
}

/* STAT CARDS */
.stat-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card-val {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--admin-primary);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-gold { background: #fef3c7; color: #b45309; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-purple { background: #f3e8ff; color: #9333ea; }

/* STATUS BADGES */
.badge-status {
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-novo { background: #dbeafe; color: #1e40af; }
.status-em_contato { background: #fef3c7; color: #92400e; }
.status-orcado { background: #f3e8ff; color: #6b21a8; }
.status-fechado { background: #dcfce7; color: #166534; }
.status-perdido { background: #fee2e2; color: #991b1b; }

/* TABLES */
.admin-table {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.9rem 1.2rem;
}

.admin-table td {
  padding: 1rem 1.2rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

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