:root {
  --awt-primary: #2454ff;
  --awt-dark: #1a2332;
  --awt-bg: #f4f6fb;
  --awt-border: #e4e8f0;
  --sidebar-width: 230px;
}

body {
  background: var(--awt-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Auth screens ---------- */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2332 0%, #2454ff 100%);
}
.auth-card {
  background: #fff;
  padding: 2.25rem;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--awt-primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---------- App shell ---------- */
.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--awt-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-layout {
  display: flex;
  min-height: calc(100vh - 56px);
}
.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--awt-border);
  flex-shrink: 0;
}
.sidebar-section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a0b8;
  padding: .9rem .75rem .3rem;
}
.sidebar .nav-link {
  color: #29344a;
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .92rem;
}
.sidebar .nav-link:hover { background: var(--awt-bg); }
.sidebar .nav-link.active { background: var(--awt-primary); color: #fff; }
.sidebar .nav-link.disabled { color: #b7c0d1; cursor: not-allowed; }

.app-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: -240px; top: 56px; bottom: 0; transition: left .2s; z-index: 30; }
  .sidebar.open { left: 0; }
}

/* ---------- Cards ---------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--awt-border);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
}
.stat-card.stat-muted { opacity: .75; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--awt-dark); }
.stat-label { font-size: .8rem; color: #6b7686; margin-top: .2rem; }

.panel-card {
  background: #fff;
  border: 1px solid var(--awt-border);
  border-radius: 12px;
  padding: 1.25rem;
}

/* ---------- Employee mobile-first ---------- */
.employee-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--awt-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
}
.quick-action-btn {
  width: 100%;
  border: 1px solid var(--awt-border);
  background: #fff;
  border-radius: 12px;
  padding: 1rem .5rem;
  font-size: .85rem;
  min-height: 84px;
}
.quick-action-btn:disabled { opacity: .5; }

.employee-layout .app-content { padding-bottom: 5.5rem; }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--awt-border);
  z-index: 30;
}
.bottom-nav-item {
  flex: 1;
  text-align: center;
  padding: .5rem 0 .4rem;
  font-size: 1.1rem;
  color: #29344a;
  text-decoration: none;
}
.bottom-nav-item span { display: block; font-size: .68rem; margin-top: .1rem; }
.bottom-nav-item.active { color: var(--awt-primary); font-weight: 600; }
.bottom-nav-item.disabled { color: #b7c0d1; }
