/* ============================================
   ANIMISO API — DASHBOARD GLOBAL THEME
   ============================================ */

:root{
  --bg:#000;
  --surface:#0a0a0a;
  --surface2:#111;
  --surface3:#151515;
  --border:#1a1a1a;
  --border-hover:#2a2a2a;
  --text:#fff;
  --text-muted:#777;
  --text-dim:#555;
  --accent:#fff;
  --success:#00ff00;
  --warning:#ffaa00;
  --danger:#ff4444;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  --radius:12px;
  --speed:0.25s;
}

*{
  box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,-apple-system,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  padding:0;
  margin:0;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar{
  min-height:100vh;
  background:var(--surface);
  border-right:1px solid var(--border);
  position:sticky;
  top:0;
  transition:left var(--speed) ease;
}

.logo-box{
  width:64px;
  height:64px;
  background:var(--surface2);
  border:1px solid var(--border);
  border-radius:14px;
  font-family:var(--mono);
  font-weight:700;
  font-size:24px;
  cursor:pointer;
  transition:all var(--speed);
}

.logo-box:hover{
  background:var(--accent);
  color:var(--bg);
  transform:scale(1.05);
}

.nav-section-label{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--text-dim);
  margin-bottom:10px;
}

.nav-link{
  color:var(--text-muted) !important;
  padding:0.75rem 1rem;
  border-radius:10px;
  transition:all var(--speed);
}

.nav-link:hover{
  background:var(--surface2);
  color:var(--text) !important;
}

.nav-link.active{
  background:var(--surface3);
  color:var(--accent) !important;
  font-weight:600;
}

.user-profile-card{
  background:var(--surface2);
  border:1px solid var(--border);
  border-radius:10px;
  padding:0.75rem;
  display:flex;
  gap:10px;
  cursor:pointer;
  transition:background var(--speed);
}

.user-profile-card:hover{
  background:var(--surface3);
}

.user-avatar{
  width:36px;
  height:36px;
  border-radius:8px;
  background:var(--accent);
  color:var(--bg);
  font-size:16px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ============================================
   STATS CARDS
   ============================================ */

.stat-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:1.5rem;
  transition:all var(--speed);
}

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

.stat-label{
  font-size:13px;
  text-transform:uppercase;
  color:var(--text-muted);
  letter-spacing:0.05em;
  margin-bottom:6px;
}

.stat-value{
  font-size:32px;
  font-weight:700;
  letter-spacing:-0.02em;
}

.stat-change{
  font-size:12px;
}

.stat-change.positive{
  color:var(--success);
}

.stat-change.negative{
  color:var(--danger);
}

.stat-change.neutral{
  color:var(--text-muted);
}

/* ============================================
   CUSTOM CARDS
   ============================================ */

.custom-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  transition:border-color var(--speed);
}

.custom-card:hover{
  border-color:var(--border-hover);
}

.card-title{
  font-size:18px;
  font-weight:700;
  letter-spacing:-0.01em;
}

.card-action{
  color:var(--text-muted);
  text-decoration:none;
  font-size:13px;
  transition:color var(--speed);
}

.card-action:hover{
  color:var(--accent);
}

/* ============================================
   API KEY BOX
   ============================================ */

.apikey-box{
  background:var(--surface2);
  border:1px solid var(--border);
  border-radius:12px;
  padding:1rem 1.125rem;
  font-family:var(--mono);
  font-size:14px;
  letter-spacing:0.03em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.btn-custom{
  background:var(--surface2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:0.6rem 1rem;
  font-weight:600;
  transition:all var(--speed);
}

.btn-custom:hover{
  background:var(--accent);
  color:var(--bg);
  border-color:var(--accent);
  transform:translateY(-2px);
}

.btn-custom:active{
  transform:translateY(0);
}

/* ============================================
   CHART
   ============================================ */

canvas{
  width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

/* ============================================
   ACTIVITY LIST
   ============================================ */

.activity-item{
  padding:1rem 0;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition:padding-left var(--speed);
}

.activity-item:hover{
  padding-left:0.5rem;
}

.activity-item:last-child{
  border-bottom:none;
}

.activity-icon{
  width:36px;
  height:36px;
  border-radius:8px;
  background:var(--surface2);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}

/* ============================================
   MOBILE SIDEBAR
   ============================================ */

@media(max-width:991px){

  .sidebar{
    position:fixed;
    top:0;
    left:-100%;
    width:260px;
    z-index:1050;
  }

  .sidebar.show{
    left:0;
  }

  .mobile-overlay{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.65);
    z-index:1040;
    display:none;
  }

  .mobile-overlay.show{
    display:block;
  }
}