/* =============================================
   AMTAP DISTRIBUTOR PANEL - VUEXY INSPIRED UI
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --primary: #7367f0;
  --primary-dark: #5e50ee;
  --primary-light: #ede8fd;
  --secondary: #82868b;
  --success: #28c76f;
  --success-light: #d4edda;
  --danger: #ea5455;
  --danger-light: #fceaea;
  --warning: #ff9f43;
  --warning-light: #fff3e0;
  --info: #00cfe8;
  --info-light: #e0f9fc;
  --dark: #4b4b4b;
  --body-bg: #f8f7fa;
  --card-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --sidebar-width: 260px;
  --sidebar-collapsed: 78px;
  --topbar-height: 64px;
  --text-primary: #5e5873;
  --text-secondary: #6e6b7b;
  --text-muted: #b9b9c3;
  --border-color: #ebe9f1;
  --shadow-sm: 0 4px 24px 0 rgba(34, 41, 47, 0.06);
  --shadow-md: 0 4px 24px 0 rgba(34, 41, 47, 0.1);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: all 0.25s ease;
}

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

body {
  font-family: "Public Sans", sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #c1c0c8;
  border-radius: 10px;
}

/* ===== LAYOUT ===== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  box-shadow: 0 0 15px 0 rgba(34, 41, 47, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar-brand {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.sidebar-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 22px 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 400;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 22px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}
.sidebar-user-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--body-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 7px 14px;
  min-width: 240px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.12);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: none;
  background: var(--body-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.topbar-icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid #fff;
}

.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.topbar-user:hover {
  background: var(--body-bg);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  bottom: 1px;
  right: 1px;
}

.topbar-user-wrap {
  position: relative;
}
.topbar-user-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}
.topbar-user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.maintenance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--body-bg);
  padding: 5px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

/* Toggle */
.toggle-switch {
  width: 38px;
  height: 22px;
  background: #e0e0e0;
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}
.toggle-switch.on {
  background: var(--primary);
}
.toggle-switch::after {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.toggle-switch.on::after {
  left: 19px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 28px 24px;
  flex: 1;
}

.page-header {
  margin-bottom: 24px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-item a {
  color: var(--primary);
}
.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--text-muted);
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.card-body {
  padding: 22px;
}

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.primary {
  background: var(--primary-light);
  color: var(--primary);
}
.stat-icon.success {
  background: var(--success-light);
  color: var(--success);
}
.stat-icon.warning {
  background: var(--warning-light);
  color: var(--warning);
}
.stat-icon.danger {
  background: var(--danger-light);
  color: var(--danger);
}
.stat-icon.info {
  background: var(--info-light);
  color: var(--info);
}

.stat-info {
  flex: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.2;
}
.stat-change {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-change.up {
  color: var(--success);
}
.stat-change.down {
  color: var(--danger);
}

/* HERO STAT CARDS */
.hero-stat {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.hero-stat::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: 30px;
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-stat-label {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
}

.hero-stat.purple {
  background: linear-gradient(135deg, #7367f0, #9e95f5);
}
.hero-stat.teal {
  background: linear-gradient(135deg, #00cfe8, #1ed9b4);
}
.hero-stat.orange {
  background: linear-gradient(135deg, #ff9f43, #ffb976);
}
.hero-stat.red {
  background: linear-gradient(135deg, #ea5455, #f08182);
}

/* ===== GRID ===== */
.grid {
  display: grid;
}
.g-2 {
  gap: 16px;
}
.g-3 {
  gap: 24px;
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-1-2 {
  grid-template-columns: 1fr 2fr;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
}

table.amtap-table {
  width: 100%;
  border-collapse: collapse;
}

.amtap-table thead tr {
  background: var(--body-bg);
}

.amtap-table th {
  padding: 11px 16px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.amtap-table td {
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.amtap-table tr:last-child td {
  border-bottom: none;
}
.amtap-table tr:hover td {
  background: rgba(115, 103, 240, 0.03);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-success {
  background: var(--success-light);
  color: var(--success);
}
.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}
.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}
.badge-info {
  background: var(--info-light);
  color: var(--info);
}
.badge-secondary {
  background: #f0f0f2;
  color: var(--secondary);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(115, 103, 240, 0.4);
}

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: #24b263;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #d94f50;
}

.btn-warning {
  background: var(--warning);
  color: #fff;
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary-light);
}

.btn-ghost {
  background: var(--body-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  background: #efeff0;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.btn-icon {
  padding: 8px;
  width: 34px;
  height: 34px;
}
.btn-icon-lg {
  padding: 10px;
  width: 40px;
  height: 40px;
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--card-bg);
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.12);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236E6B7B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.input-group {
  position: relative;
}
.input-group-prepend,
.input-group-append {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-group-prepend {
  left: 12px;
}
.input-group-append {
  right: 12px;
}
.input-group .form-control.has-prepend {
  padding-left: 38px;
}
.input-group .form-control.has-append {
  padding-right: 38px;
}

/* ===== AVATAR ===== */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.avatar-img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}
.page-item:hover,
.page-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== UTILS ===== */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.w-full {
  width: 100%;
}
.mt-1 {
  margin-top: 6px;
}
.mt-2 {
  margin-top: 12px;
}
.mt-3 {
  margin-top: 18px;
}
.mt-4 {
  margin-top: 24px;
}
.mb-1 {
  margin-bottom: 6px;
}
.mb-2 {
  margin-bottom: 12px;
}
.mb-3 {
  margin-bottom: 18px;
}
.mb-4 {
  margin-bottom: 24px;
}
.p-0 {
  padding: 0 !important;
}
.text-sm {
  font-size: 12px;
}
.text-xs {
  font-size: 11px;
}
.text-muted {
  color: var(--text-muted);
}
.text-primary {
  color: var(--primary);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-warning {
  color: var(--warning);
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}

/* ===== AUTH PAGE ===== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--body-bg);
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.auth-left::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.auth-left-title {
  font-size: 32px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.auth-left-sub {
  font-size: 15px;
  opacity: 0.85;
  max-width: 360px;
  line-height: 1.7;
}

.auth-illustration {
  width: 280px;
  height: 220px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-right {
  width: 500px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.auth-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 28px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.checkbox-wrap input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}
.forgot-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}
.forgot-link:hover {
  text-decoration: underline;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(34, 41, 47, 0.12);
  min-width: 200px;
  z-index: 1050;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
}
.dropdown-menu.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--body-bg);
  color: var(--primary);
}
.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* ===== CHARTS placeholder ===== */
.chart-placeholder {
  background: linear-gradient(135deg, var(--body-bg), #f0eef8);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .main-content {
    margin-left: 0;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    width: 100%;
    padding: 32px 24px;
  }
  .cols-3,
  .cols-2,
  .cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.4s ease both;
}
.fade-in-1 {
  animation-delay: 0.05s;
}
.fade-in-2 {
  animation-delay: 0.1s;
}
.fade-in-3 {
  animation-delay: 0.15s;
}
.fade-in-4 {
  animation-delay: 0.2s;
}
