/* ═══════════════════════════════════════════════════
   CrocoAI — Perpetuum Mobile Style
   Matches perpetuummobile.tech design system
   Colors: #6db43e primary, #000200 bg, #0a0a0a cards
   Fonts: Black Future (headings) + Rajdhani (body)
   ═══════════════════════════════════════════════════ */

/* Black Future — custom font de pe perpetuummobile.tech */
@font-face {
  font-family: 'Black Future';
  src: url('https://perpetuummobile.tech/assets/fonts/Black Future.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Orbitron:wght@700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --primary: #6db43e;
  --primary-dark: #247042;
  --primary-glow: rgba(109, 180, 62, 0.4);
  --primary-subtle: rgba(109, 180, 62, 0.15);
  --primary-border: rgba(109, 180, 62, 0.25);
  --bg-dark: #000200;
  --bg-card: #0a0a0a;
  --bg-elevated: #0d0d0d;
  --bg-input: #060806;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(109, 180, 62, 0.3);
  --text-main: #e1e1e1;
  --text-header: #ffffff;
  --text-muted: #888;
  --text-dim: #555;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --transition: all 0.25s ease;
  --font-header: 'Black Future', 'Black Ops One', 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 500;
}

::selection {
  background: var(--primary);
  color: var(--bg-dark);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(109, 180, 62, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(109, 180, 62, 0.4); }

/* ─── Container ─── */
.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-left: 2px solid rgba(109, 180, 62, 0.2);
  transition: var(--transition);
}
.card:hover {
  border-left-color: var(--primary);
}
.card h2 {
  font-family: var(--font-header);
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(109, 180, 62, 0.3);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.card-header h2 { margin-bottom: 0; }

/* ─── Stats ─── */
.stats { display: flex; gap: 1px; flex-wrap: wrap; margin-bottom: 4px; }
.stat {
  text-align: center;
  flex: 1;
  min-width: 100px;
  padding: 24px 16px;
  background: var(--bg-dark);
  border-right: 1px solid rgba(109, 180, 62, 0.12);
  transition: var(--transition);
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(109, 180, 62, 0.03); }
.stat-value {
  display: block;
  font-family: var(--font-header);
  font-size: 2.4em;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
  line-height: 1.1;
  letter-spacing: 2px;
}
.stat-label {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 6px;
}

/* ─── Messages ─── */
.message-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.message-item:last-child { border: none; }
.message-item:hover { padding-left: 4px; }
.message-sender { color: var(--primary); font-weight: 600; font-size: 0.9em; }
.message-time { color: var(--text-dim); font-size: 0.8em; margin-left: 8px; }
.message-body { margin-top: 4px; color: #ccc; font-size: 0.95em; }

/* ─── List Items ─── */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: var(--transition);
}
.list-item:last-child { border: none; }
.list-item:hover { padding-left: 2px; }
.list-item.done { opacity: 0.45; }
.list-item-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.list-item-main strong { word-break: break-word; color: var(--text-header); font-weight: 600; }
.list-item-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ─── Checkbox ─── */
.list-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── Badge ─── */
.badge {
  background: rgba(109, 180, 62, 0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  white-space: nowrap;
  border: 1px solid var(--primary-border);
  font-weight: 600;
}
.badge.confirmed {
  background: rgba(109, 180, 62, 0.15);
  color: var(--primary);
}

/* ─── Avatar ─── */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1em;
  flex-shrink: 0;
  text-shadow: none;
}

/* ─── Event Date Badge ─── */
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-width: 50px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.event-day {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 10px var(--primary-glow);
}
.event-month { font-size: 0.7em; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ─── Filters ─── */
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72em;
  font-family: var(--font-header);
  font-weight: 700;
  transition: var(--transition);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-subtle);
}
.filter-btn.active {
  color: var(--bg-dark);
  border-color: var(--primary);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  box-shadow: 0 0 12px rgba(109, 180, 62, 0.3);
}

/* ─── Forms ─── */
.form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.hidden { display: none !important; }
.input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 0.95em;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 180, 62, 0.1);
}
.input::placeholder { color: var(--text-dim); }

/* ─── Buttons ─── */
.btn {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8em;
  font-family: var(--font-header);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(109, 180, 62, 0.4);
}
.btn:active { transform: translateY(0); }
.btn-small { padding: 5px 14px; font-size: 0.72em; letter-spacing: 1.5px; }
.btn-icon {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3em;
  cursor: pointer;
  padding: 4px 8px;
  transition: var(--transition);
  border-radius: 4px;
}
.btn-icon:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* ─── Utility ─── */
.muted { color: var(--text-muted); }
.small { font-size: 0.85em; }
.reminder-icon { font-size: 1.3em; flex-shrink: 0; width: 32px; text-align: center; }

/* ─── Calendar ─── */
.cal-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cal-month-label {
  font-family: var(--font-header);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-header);
  min-width: 200px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
}
.cal-arrow {
  font-size: 1.6em;
  color: var(--primary);
  padding: 4px 10px;
  transition: var(--transition);
}
.cal-arrow:hover { text-shadow: 0 0 10px var(--primary-glow); }
.cal-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.cal-day-name {
  text-align: center;
  color: var(--primary);
  font-size: 0.85em;
  font-weight: 700;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell {
  background: var(--bg-elevated);
  border-radius: 6px;
  min-height: 80px;
  padding: 6px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border: 1px solid transparent;
}
.cal-cell:hover {
  background: rgba(109, 180, 62, 0.05);
  border-color: var(--primary-border);
}
.cal-cell.empty { background: transparent; cursor: default; border: none; }
.cal-cell.empty:hover { background: transparent; border: none; }
.cal-cell.today {
  border: 1px solid var(--primary);
  box-shadow: 0 0 12px rgba(109, 180, 62, 0.15);
}
.cal-cell.today .cal-cell-num { color: var(--primary); font-weight: 700; }
.cal-cell-num { font-size: 0.85em; color: var(--text-muted); display: block; margin-bottom: 4px; font-weight: 600; }
.cal-event-dot {
  font-size: 0.7em;
  color: var(--bg-dark);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.cal-event-more { font-size: 0.7em; color: var(--primary); font-weight: 600; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .container { padding: 12px; }
  .list-item { flex-direction: column; align-items: flex-start; }
  .list-item-meta { margin-top: 8px; }
  .stats { flex-direction: column; }
  .cal-cell { min-height: 50px; padding: 4px; }
  .cal-event-dot { font-size: 0.6em; padding: 1px 3px; }
  .cal-month-label { min-width: 140px; font-size: 1.1em; }
  .filters { gap: 6px; }
  .filter-btn { padding: 5px 12px; font-size: 0.8em; }
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: var(--bg-card, #1e1e2e);
  border-radius: 12px;
  padding: 24px;
  width: 400px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal h3 { margin: 0 0 8px; }
.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-tab { background: transparent; border: 1px solid var(--border, #333); border-radius: 6px; padding: 4px 12px; cursor: pointer; color: inherit; }
.filter-tab.active { background: var(--accent, #7c3aed); color: #fff; border-color: transparent; }

/* Task assignee checkboxes */
.checkbox-group { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; padding: 8px; border: 1px solid var(--border, #333); border-radius: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.checkbox-label:hover { background: var(--hover, rgba(255,255,255,0.05)); }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent, #7c3aed); }
