/* ═══════════════════════════════════════════════════════
   TwinPeta Technologies — Personal Management System
   Theme: Chrome/Silver luxury dark
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:          #07070c;
  --bg-card:     #0f0f18;
  --bg-card-h:   #161622;
  --bg-sidebar:  #0b0b13;
  --bg-input:    #0a0a12;
  --accent:      #9898b0;
  --accent-b:    #c4c4d8;
  --silver:      #b0b0c8;
  --silver-l:    #d8d8e8;
  --silver-d:    #606078;
  --text:        #e8e8f4;
  --text-m:      #7878a0;
  --border:      #1e1e34;
  --border-l:    #2e2e48;
  --ok:          #34d399;
  --ok-bg:       #34d39912;
  --no:          #f87171;
  --no-bg:       #f8717112;
  --warn:        #fbbf24;
  --warn-bg:     #fbbf2412;
  --info:        #60a5fa;
  --info-bg:     #60a5fa12;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.5);
  --font:        'Outfit', sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --sidebar-w:   240px;
  --sidebar-w-c: 64px;
  --topbar-h:    56px;
  --transition:  all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-l); border-radius: 4px; }
::selection { background: rgba(196,196,216,0.15); }
a { color: var(--accent-b); text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ══════════════════════════════════════
   LOGIN SCREEN
   ══════════════════════════════════════ */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.login-screen.hidden { display: none; }

/* Animated background grid */
.login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.12;
}
.login-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(200,200,220,0.08) 49.5%, rgba(200,200,220,0.08) 50.5%, transparent 50.5%) 0 0 / 60px 60px,
    linear-gradient(0deg, transparent 49.5%, rgba(200,200,220,0.08) 49.5%, rgba(200,200,220,0.08) 50.5%, transparent 50.5%) 0 0 / 60px 60px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(30px, 30px) rotate(1deg); }
}

/* Glow orbs */
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 12s ease-in-out infinite;
}
.login-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196,196,216,0.4), transparent);
  top: 10%; left: 20%;
}
.login-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(96,165,250,0.3), transparent);
  bottom: 15%; right: 15%;
  animation-delay: -4s;
}
.login-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(52,211,153,0.2), transparent);
  top: 50%; left: 60%;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 20px); }
}

.login-card {
  position: relative;
  z-index: 2;
  background: rgba(15,15,24,0.85);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-l);
  border-radius: 24px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: cardAppear 0.6s ease;
}
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 2px solid var(--border-l);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 12px;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.login-desc {
  font-size: 13px;
  color: var(--silver-d);
  margin-bottom: 32px;
  line-height: 1.5;
}

.login-btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1e1e30, #2a2a40);
  border: 1px solid var(--border-l);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.2px;
}
.login-btn-google:hover {
  background: linear-gradient(135deg, #2a2a40, #363650);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(196,196,216,0.1);
  transform: translateY(-1px);
}
.login-btn-google:active { transform: translateY(0); }
.login-btn-google svg { flex-shrink: 0; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--silver-d);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-m);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.login-demo-btn:hover {
  color: var(--text);
  border-color: var(--border-l);
  background: rgba(200,200,220,0.03);
}

.login-footer {
  margin-top: 28px;
  font-size: 11px;
  color: var(--silver-d);
  line-height: 1.6;
}
.login-footer a { color: var(--accent-b); }

.login-auth-note {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(96,165,250,0.06);
  border: 1px solid rgba(96,165,250,0.12);
  border-radius: 10px;
  font-size: 11px;
  color: var(--info);
  text-align: left;
}
.login-auth-note i { margin-right: 6px; }

/* Loading spinner */
.login-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}
.login-loading.active { display: flex; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-b);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.login-loading-text {
  font-size: 13px;
  color: var(--text-m);
}

/* Error state */
.login-error {
  display: none;
  padding: 10px 14px;
  background: var(--no-bg);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 10px;
  font-size: 12px;
  color: var(--no);
  margin-top: 12px;
  text-align: left;
}
.login-error.active { display: block; }
.login-error i { margin-right: 6px; }

/* ══════════════════════════════════════
   APP SHELL (hidden until auth)
   ══════════════════════════════════════ */
.app-shell {
  display: none;
  height: 100vh;
  overflow: hidden;
}
.app-shell.active { display: flex; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 100;
}
.sidebar.collapsed { width: var(--sidebar-w-c); }
.sidebar-brand {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #28283e, #18182c);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-brand .brand-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.sidebar-brand .brand-text { overflow: hidden; white-space: nowrap; transition: opacity 0.2s; }
.sidebar.collapsed .brand-text { opacity: 0; width: 0; }
.sidebar-brand .brand-name { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; line-height: 1.15; }
.sidebar-brand .brand-sub { font-size: 9px; color: var(--text-m); text-transform: uppercase; letter-spacing: 1.5px; }
.sidebar-nav {
  flex: 1; padding: 10px 6px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid transparent;
  background: transparent; color: var(--text-m);
  font-size: 13px; font-weight: 400; width: 100%;
  text-align: left; transition: var(--transition);
  position: relative; overflow: hidden; white-space: nowrap;
}
.nav-item:hover { color: var(--text); background: rgba(200,200,220,0.04); }
.nav-item.active {
  color: var(--text); background: rgba(200,200,220,0.07);
  border-color: rgba(200,200,220,0.1); font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 18px;
  background: var(--accent-b); border-radius: 0 3px 3px 0;
}
.nav-item i { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-item span { transition: opacity 0.2s; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px; }
.sidebar.collapsed .nav-item span { opacity: 0; width: 0; overflow: hidden; }
.sidebar.collapsed .nav-item::before { display: none; }
.sidebar-footer { padding: 10px 6px; border-top: 1px solid var(--border); }
.sidebar-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: none; border: none;
  color: var(--text-m); font-size: 12px; width: 100%;
  transition: var(--transition);
}
.sidebar-toggle:hover { color: var(--text); }
.sidebar.collapsed .sidebar-toggle { justify-content: center; }
.sidebar.collapsed .sidebar-toggle span { display: none; }

/* Logout button in sidebar */
.sidebar-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: none;
  border: 1px solid rgba(248,113,113,0.15);
  border-radius: 10px;
  color: var(--no); font-size: 12px; width: 100%;
  transition: var(--transition); margin-bottom: 6px;
}
.sidebar-logout:hover { background: var(--no-bg); border-color: rgba(248,113,113,0.3); }
.sidebar.collapsed .sidebar-logout span { display: none; }
.sidebar.collapsed .sidebar-logout { justify-content: center; }

/* ── Main Area ── */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: var(--topbar-h); padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
  display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
.topbar-breadcrumb { font-size: 12px; color: var(--text-m); }
.topbar-breadcrumb .crumb-active { color: var(--text); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.notif-btn {
  position: relative; background: none;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 10px; color: var(--text-m); transition: var(--transition);
}
.notif-btn:hover { border-color: var(--border-l); color: var(--text); }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--no); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.notif-dropdown {
  position: absolute; top: 48px; right: 0;
  width: 360px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow-lg); z-index: 500;
  display: none; animation: dropIn 0.2s ease;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-title {
  padding: 8px 12px; font-size: 13px; font-weight: 700;
  color: var(--text); border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.notif-item { padding: 9px 12px; border-radius: 8px; font-size: 12px; color: var(--text); transition: background 0.15s; }
.notif-item:hover { background: var(--bg-card-h); }
.notif-item .notif-time { font-size: 10px; color: var(--text-m); margin-top: 2px; }
.notif-item.unread { background: rgba(96,165,250,0.04); }
.notif-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--info);
  margin-right: 8px; vertical-align: middle;
}

.user-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 6px; border-radius: 10px;
  border: 1px solid var(--border);
}
.user-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #40405a, #30304a);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text);
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.user-info .user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.user-info .user-email { font-size: 9px; color: var(--text-m); }

.content-area { flex: 1; overflow-y: auto; padding: 24px; }

/* ── Animations ── */
.page { animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes barGrow { from { width: 0; } }

/* ── Page Header ── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.page-header h2 { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.page-header p { font-size: 12px; color: var(--text-m); margin-top: 3px; }

/* ── Stat Cards ── */
.stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  flex: 1; min-width: 180px; transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }
.stat-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; font-size: 17px;
}
.stat-icon.ok { background: var(--ok-bg); color: var(--ok); }
.stat-icon.no { background: var(--no-bg); color: var(--no); }
.stat-icon.warn { background: var(--warn-bg); color: var(--warn); }
.stat-icon.info { background: var(--info-bg); color: var(--info); }
.stat-label { font-size: 12px; color: var(--text-m); margin-bottom: 3px; letter-spacing: 0.3px; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--text); }
.stat-sub { font-size: 11px; color: var(--silver-d); margin-top: 3px; }

/* ── Cards Grid ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: var(--transition); position: relative;
  animation: slideRight 0.3s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-l); }
.card-header { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.card-subtitle { font-size: 10px; color: var(--text-m); }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.card-field-label { font-size: 9px; color: var(--text-m); text-transform: uppercase; letter-spacing: 0.5px; }
.card-field-value { font-size: 13px; font-weight: 600; color: var(--text); }
.card-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }

/* ── Progress Bar ── */
.progress-bar { width: 100%; height: 5px; background: var(--border); border-radius: 5px; overflow: hidden; }
.progress-bar .progress-fill { height: 100%; border-radius: 5px; animation: barGrow 0.8s ease; transition: width 0.5s ease; }
.progress-bar .progress-fill.ok { background: var(--ok); }
.progress-bar .progress-fill.info { background: var(--info); }
.progress-bar .progress-fill.warn { background: var(--warn); }
.progress-bar .progress-fill.no { background: var(--no); }

/* ── Tags ── */
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; letter-spacing: 0.5px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.no { background: var(--no-bg); color: var(--no); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.muted { background: rgba(120,120,160,0.1); color: var(--text-m); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
table thead th {
  padding: 11px 15px; text-align: left; font-size: 10px; font-weight: 600;
  color: var(--text-m); text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--border); background: var(--bg);
  white-space: nowrap; position: sticky; top: 0;
}
table tbody td { padding: 12px 15px; font-size: 12px; color: var(--text); border-bottom: 1px solid rgba(30,30,52,0.3); white-space: nowrap; }
table tbody tr { transition: background 0.12s; }
table tbody tr:hover { background: var(--bg-card-h); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 10px; font-weight: 600; letter-spacing: 0.3px;
  border: none; transition: var(--transition); white-space: nowrap;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.97); }
.btn-md { padding: 9px 16px; font-size: 12px; }
.btn-sm { padding: 5px 11px; font-size: 11px; }
.btn-lg { padding: 12px 22px; font-size: 13px; }
.btn-primary { background: linear-gradient(135deg, #48485a, #38384a); color: var(--text); border: 1px solid var(--border-l); }
.btn-primary:hover { background: linear-gradient(135deg, #52526a, #42425a); }
.btn-success { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(52,211,153,0.2); }
.btn-danger { background: var(--no-bg); color: var(--no); border: 1px solid rgba(248,113,113,0.2); }
.btn-ghost { background: transparent; color: var(--text-m); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-l); }
.btn-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(251,191,36,0.2); }
.btn-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-m);
  transition: var(--transition); font-size: 14px;
}
.btn-icon:hover { color: var(--text); background: rgba(200,200,220,0.06); }
.btn-icon.danger:hover { color: var(--no); }
.btn-icon.ok:hover { color: var(--ok); }

/* ── Forms ── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 11px; color: var(--text-m); margin-bottom: 5px; font-weight: 500; letter-spacing: 0.4px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 13px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent-b); }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.search-input { max-width: 300px; margin-bottom: 16px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px); display: none;
  align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; width: 100%; max-width: 540px;
  max-height: 86vh; overflow: auto; padding: 28px;
  animation: dropIn 0.22s ease;
}
.modal-box.wide { max-width: 640px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.modal-close { background: none; border: none; color: var(--text-m); cursor: pointer; padding: 4px; font-size: 18px; }

/* ── Dashboard ── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.dash-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.dash-panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-panel-title h4 { font-size: 14px; font-weight: 700; color: var(--text); }

.alert-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; margin-bottom: 6px; animation: slideRight 0.3s ease; }
.alert-item.danger { background: rgba(248,113,113,0.05); border: 1px solid rgba(248,113,113,0.1); }
.alert-item.warn { background: rgba(251,191,36,0.05); border: 1px solid rgba(251,191,36,0.1); }
.alert-item.ok { background: rgba(52,211,153,0.04); border: 1px solid rgba(52,211,153,0.1); }
.alert-item.info { background: rgba(96,165,250,0.04); border: 1px solid rgba(96,165,250,0.1); }
.alert-icon { font-size: 15px; flex-shrink: 0; }
.alert-content { flex: 1; }
.alert-title { font-size: 12px; font-weight: 600; color: var(--text); }
.alert-sub { font-size: 10px; margin-top: 1px; }

.booking-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: rgba(52,211,153,0.04);
  border-radius: 11px; border: 1px solid rgba(52,211,153,0.1);
  margin-bottom: 6px; transition: var(--transition); animation: slideRight 0.3s ease;
}
.booking-card:hover { background: rgba(52,211,153,0.07); }
.booking-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ok-bg); display: flex;
  align-items: center; justify-content: center;
  color: var(--ok); font-size: 17px;
}

/* ── Print Doc ── */
.print-doc { background: #fff; color: #111; border-radius: 12px; padding: 28px; font-family: 'Outfit', sans-serif; }
.print-doc .doc-header { display: flex; justify-content: space-between; border-bottom: 2px solid #111; padding-bottom: 18px; margin-bottom: 24px; }
.print-doc .doc-title { font-size: 26px; font-weight: 800; }
.print-doc .doc-id { font-size: 11px; color: #777; margin-top: 3px; }
.print-doc .doc-company { text-align: right; }
.print-doc .doc-company-name { font-weight: 700; font-size: 14px; }
.print-doc .doc-company-info { font-size: 11px; color: #777; }
.print-doc .doc-parties { display: flex; justify-content: space-between; margin-bottom: 24px; }
.print-doc .doc-label { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.print-doc .doc-value { font-weight: 600; }
.print-doc .doc-totals { display: flex; justify-content: flex-end; }
.print-doc .doc-totals-inner { min-width: 200px; }
.print-doc .doc-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; }
.print-doc .doc-total-final { font-size: 15px; font-weight: 800; border-top: 2px solid #111; margin-top: 4px; padding-top: 8px; }

/* ── Reports ── */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.report-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.report-panel h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.report-big-number { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.report-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.report-row:last-child { border-bottom: none; }
.report-row .report-row-label { color: var(--text-m); }
.report-row .report-row-value { font-weight: 600; }

/* ── Chart ── */
.chart-bar-group { display: flex; align-items: flex-end; gap: 12px; height: 140px; padding: 10px 0; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bar-fill { width: 100%; max-width: 40px; border-radius: 6px 6px 0 0; transition: height 0.6s ease; animation: barGrow 0.8s ease; }
.chart-bar-label { font-size: 10px; color: var(--text-m); margin-top: 6px; text-align: center; }
.chart-bar-value { font-size: 9px; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ── Utilities ── */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mb-6 { margin-bottom: 6px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.fw-700 { font-weight: 700; }
.fs-10 { font-size: 10px; } .fs-11 { font-size: 11px; } .fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; }
.text-ok { color: var(--ok); } .text-no { color: var(--no); } .text-warn { color: var(--warn); } .text-info { color: var(--info); } .text-m { color: var(--text-m); }

@media (max-width: 900px) {
  .dash-grid, .report-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .topbar, .btn, .card-actions, .login-screen { display: none !important; }
  .content-area { padding: 0; }
}
