/* styles.css — Corporation Inc. — AAA Game Styles */

/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #060810;
  color: #e8ecf4;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ── Custom scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: rgba(0,200,255,0.3); border-radius: 3px; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* MAIN MENU                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */
#main-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 40%, #0d1f3c 0%, #060810 60%);
  z-index: 1000;
}

/* Animated background grid */
#main-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPan 20s linear infinite;
}

@keyframes gridPan { from { background-position: 0 0; } to { background-position: 60px 60px; } }

/* Glow orbs */
#main-menu::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.06) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}

.menu-logo {
  position: relative;
  text-align: center;
  margin-bottom: 50px;
  z-index: 1;
}

.menu-logo-title {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00c8ff 0%, #7c5cd8 50%, #00c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  filter: drop-shadow(0 0 30px rgba(0,200,255,0.4));
  line-height: 1.1;
}

.menu-logo-subtitle {
  font-size: 13px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}

@keyframes shimmer { from { background-position: 0% center; } to { background-position: 200% center; } }

.menu-logo-corp-icon {
  margin: 0 auto 16px;
  width: 80px; height: 80px;
  display: block;
}

.menu-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-width: 280px;
}

.menu-btn {
  width: 280px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.18s;
}

.menu-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.menu-btn:hover { transform: translateY(-2px); filter: brightness(1.15); }
.menu-btn:active { transform: translateY(0); }

.menu-btn-primary {
  background: linear-gradient(135deg, #0a3a6e 0%, #1a5ca8 100%);
  color: #ffffff;
  border: 1px solid rgba(0,200,255,0.4);
  box-shadow: 0 4px 20px rgba(0,200,255,0.2);
}

.menu-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
}

.menu-btn-secondary:hover { background: rgba(255,255,255,0.1); }

.menu-btn-danger {
  background: rgba(220,40,40,0.3);
  color: #ff8888;
  border: 1px solid rgba(220,40,40,0.4);
}

.menu-btn-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
}

/* New game form */
#new-game-form {
  position: relative;
  z-index: 1;
  background: rgba(14,18,32,0.9);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 12px;
  padding: 32px;
  width: 360px;
  backdrop-filter: blur(12px);
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  color: #00c8ff;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  height: 44px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #e8ecf4;
  font-size: 15px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus { border-color: #00c8ff; box-shadow: 0 0 0 2px rgba(0,200,255,0.15); }

.form-row { display: flex; gap: 12px; }

/* Load screen */
#load-screen {
  position: relative;
  z-index: 1;
  background: rgba(14,18,32,0.95);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 12px;
  padding: 28px;
  width: 500px;
  max-height: 500px;
  overflow-y: auto;
  backdrop-filter: blur(12px);
}

.save-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.15s;
}

.save-slot-card:hover { background: rgba(0,200,255,0.06); }

.save-slot-name { font-size: 15px; font-weight: 600; color: #e8ecf4; }
.save-slot-meta { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; }
.save-slot-actions { display: flex; gap: 8px; }

/* How to play / credits modals */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.info-modal.hidden { display: none; }

.info-modal-box {
  background: rgba(14,18,32,0.98);
  border: 1px solid rgba(0,200,255,0.25);
  border-radius: 16px;
  padding: 36px;
  width: 620px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.info-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #00c8ff;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.howto-step {
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #00c8ff;
  border-radius: 0 8px 8px 0;
}

.howto-step-title { font-size: 14px; font-weight: 700; color: #00c8ff; margin-bottom: 6px; }
.howto-step-desc  { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }

.credits-name { font-size: 28px; font-weight: 900; color: #f59e0b; text-align: center; margin: 20px 0 8px; }
.credits-studio { font-size: 18px; color: rgba(255,255,255,0.6); text-align: center; }
.credits-version { font-size: 12px; color: rgba(255,255,255,0.3); text-align: center; margin-top: 12px; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* GAME CONTAINER                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */
#game-container {
  position: fixed;
  inset: 0;
  display: block; /* no flex — HUD is fixed, canvas fills rest */
}

#game-container.hidden { display: none; }

/* HUD bar */
#hud-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(8,12,24,0.98) 0%, rgba(10,15,28,0.96) 100%);
  border-bottom: 1px solid rgba(0,200,255,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hud-section { display: flex; align-items: center; gap: 12px; }
.hud-center  { flex: 1; justify-content: center; gap: 8px; }

.hud-company { display: flex; align-items: center; gap: 10px; }
.hud-company-name { font-size: 14px; font-weight: 700; color: #ffffff; letter-spacing: 1px; }
.hud-stage-badge {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(0,200,255,0.15); border: 1px solid rgba(0,200,255,0.4);
  border-radius: 10px; padding: 2px 8px; color: #00c8ff;
}

.hud-time { font-size: 11px; color: rgba(255,255,255,0.4); font-variant-numeric: tabular-nums; }

.hud-stat {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  min-width: 100px;
}

.hud-icon { width: 16px; height: 16px; flex-shrink: 0; }

.hud-stat-label {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); flex-shrink: 0;
}

.hud-stat-value { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.positive { color: #22c55e; }
.negative { color: #ef4444; }
.warning  { color: #f59e0b; }

.hud-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.08); }

/* Game canvas area — absolutely fills below the HUD */
#canvas-area {
  position: fixed;
  inset: 60px 0 0 0;
  overflow: hidden;
  background: #111a2b;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  background: #111a2b;
}

/* Side menu */
#side-menu {
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: 72px;
  background: rgba(8,12,24,0.97);
  border-right: 1px solid rgba(0,200,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 6px;
  z-index: 200;
}

.side-btn-group { display: flex; flex-direction: column; gap: 4px; }
.side-btn-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 8px; }

.side-btn {
  width: 60px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}

.side-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.side-btn:hover { background: rgba(0,200,255,0.1); border-color: rgba(0,200,255,0.3); color: #00c8ff; }
.side-btn.active { background: rgba(0,200,255,0.15); border-color: rgba(0,200,255,0.5); color: #00c8ff; }

.side-btn-sm { height: 46px; }

/* Panels container */
#panels-container {
  position: fixed;
  top: 70px;
  left: 80px;
  z-index: 300;
  pointer-events: none;
}

.game-panel {
  position: absolute;
  top: 0;
  background: rgba(10,14,26,0.97);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,200,255,0.05);
  overflow: hidden;
  pointer-events: all;
  backdrop-filter: blur(12px);
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

.game-panel.hidden { display: none; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  background: rgba(0,200,255,0.05);
  border-bottom: 1px solid rgba(0,200,255,0.12);
  flex-shrink: 0;
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00c8ff;
}

.panel-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.15s;
}
.panel-close:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #ef4444; }

.panel-body {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}

.panel-desc {
  font-size: 12px; color: rgba(255,255,255,0.45);
  margin-bottom: 14px; line-height: 1.5;
}

/* Build menu */
.build-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.build-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: #e8ecf4;
  transition: all 0.15s;
  align-items: flex-start;
}

.build-card:hover { background: rgba(0,200,255,0.08); border-color: rgba(0,200,255,0.3); }

.build-card-icon {
  width: 56px; height: 56px;
  border: 2px solid;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.build-card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.build-card-info { display: flex; flex-direction: column; gap: 1px; }
.build-card-label { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.build-card-cost  { font-size: 12px; color: #f59e0b; font-weight: 600; }
.build-card-size  { font-size: 11px; color: rgba(255,255,255,0.4); }
.build-card-desc  { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; line-height: 1.4; }

/* Hire panel */
.panel-form { display: flex; flex-direction: column; gap: 12px; }

.panel-form label {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: -6px;
}

.panel-form select {
  width: 100%; height: 38px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #e8ecf4;
  font-size: 13px;
  padding: 0 10px;
  outline: none;
}

.panel-form select:focus { border-color: #00c8ff; }

.hire-cost-preview {
  font-size: 12px; color: rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.3); border-radius: 6px; padding: 8px 10px;
}

.hire-dept-actions { margin-top: 8px; }

.dept-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; margin: 4px 4px 0 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid;
  border-radius: 16px;
  font-size: 11px; color: #e8ecf4;
  cursor: pointer; transition: all 0.15s;
}
.dept-btn:hover { background: rgba(255,255,255,0.08); transform: scale(1.04); }
.dept-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Research panel */
.research-active {
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.3);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.research-active-title { font-size: 14px; font-weight: 700; color: #00c8ff; margin-bottom: 8px; }
.research-active-detail { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }

.progress-bar {
  height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00c8ff, #7c5cd8);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.research-category { margin-bottom: 20px; }
.research-cat-title {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 4px;
}

.research-card {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: all 0.15s;
}

.research-card:hover:not(.locked):not(.completed) { background: rgba(0,200,255,0.05); }
.research-card.completed { border-color: rgba(34,197,94,0.3); opacity: 0.7; }
.research-card.locked    { opacity: 0.4; pointer-events: none; }

.research-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.research-tier {
  font-size: 10px; font-weight: 700;
  background: rgba(124,92,216,0.3); border: 1px solid rgba(124,92,216,0.5);
  border-radius: 4px; padding: 1px 5px; color: #a855f7;
}
.research-label { font-size: 13px; font-weight: 600; flex: 1; }

.badge-complete {
  font-size: 10px; background: rgba(34,197,94,0.2);
  border: 1px solid rgba(34,197,94,0.4); border-radius: 10px;
  padding: 1px 7px; color: #22c55e;
}
.badge-queue {
  font-size: 10px; background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4); border-radius: 10px;
  padding: 1px 7px; color: #f59e0b;
}

.research-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.4; margin-bottom: 6px; }
.research-req  { font-size: 10px; color: rgba(255,255,255,0.3); }

.btn-research-start {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  background: rgba(0,200,255,0.12); border: 1px solid rgba(0,200,255,0.4);
  border-radius: 5px; padding: 5px 12px; color: #00c8ff;
  cursor: pointer; transition: all 0.15s; display: block; margin-top: 8px;
}
.btn-research-start:hover { background: rgba(0,200,255,0.25); }

/* Finance */
.finance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}

.finance-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03); border-radius: 6px;
  font-size: 12px;
}
.finance-stat span:first-child { color: rgba(255,255,255,0.5); }
.finance-stat span:last-child  { font-weight: 700; font-variant-numeric: tabular-nums; }

.payroll-breakdown { margin-top: 12px; }
.payroll-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
}

/* Management */
.mgmt-stats {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.mgmt-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 8px; background: rgba(255,255,255,0.03); border-radius: 8px;
  font-size: 11px; text-align: center;
}
.mgmt-stat span:last-child { font-size: 16px; font-weight: 700; color: #00c8ff; }

.emp-list { display: flex; flex-direction: column; gap: 8px; }

.emp-item {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  transition: all 0.15s;
}
.emp-item:hover { background: rgba(0,200,255,0.05); }

.emp-item-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.emp-name    { font-size: 13px; font-weight: 700; flex: 1; }
.emp-job     { font-size: 11px; color: rgba(255,255,255,0.5); }
.emp-dept    { font-size: 10px; font-weight: 600; }
.emp-salary  { font-size: 11px; color: #f59e0b; margin-left: auto; }

.emp-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.emp-bar-row { display: flex; align-items: center; gap: 6px; font-size: 10px; color: rgba(255,255,255,0.4); }
.mini-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.mini-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }

.emp-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.emp-personality {
  font-size: 10px; padding: 2px 7px;
  background: rgba(124,92,216,0.15); border: 1px solid rgba(124,92,216,0.3);
  border-radius: 10px; color: #a855f7;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #0a3a6e, #1a5ca8);
  border: 1px solid rgba(0,200,255,0.4); border-radius: 7px;
  color: white; font-size: 13px; font-weight: 600; padding: 9px 18px;
  cursor: pointer; transition: all 0.15s;
}
.btn-primary:hover { filter: brightness(1.2); transform: translateY(-1px); }

/* Receptionist hire button — accent so it stands out from regular hire form */
.btn-receptionist {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  flex-direction: row;
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(245,158,11,0.06));
  border: 1px solid rgba(245,158,11,0.45); border-radius: 7px;
  color: #fbbf24; font-size: 13px; font-weight: 600; padding: 10px 14px;
  cursor: pointer; transition: all 0.15s;
  margin: 4px 0 10px 0;
}
.btn-receptionist:hover { background: linear-gradient(135deg, rgba(245,158,11,0.28), rgba(245,158,11,0.12)); transform: translateY(-1px); }
.btn-receptionist svg { color: #fbbf24; }
.btn-receptionist .hire-receptionist-meta {
  margin-left: auto; font-weight: 400; font-size: 11px; color: rgba(251,191,36,0.7);
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px; color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600;
  padding: 9px 18px; cursor: pointer; transition: all 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(220,40,40,0.2); border: 1px solid rgba(220,40,40,0.4);
  border-radius: 7px; color: #ff8888; font-size: 13px; font-weight: 600;
  padding: 9px 18px; cursor: pointer; transition: all 0.15s;
}
.btn-danger:hover { background: rgba(220,40,40,0.35); }

.btn-sm { font-size: 11px; padding: 5px 10px; }

/* Employee profile */
.emp-profile { }
.emp-profile-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.emp-profile-avatar { width: 80px; height: 120px; flex-shrink: 0; background: rgba(255,255,255,0.05); border-radius: 8px; overflow: hidden; }
.emp-profile-name { font-size: 18px; font-weight: 700; }
.emp-profile-title { font-size: 13px; color: rgba(255,255,255,0.55); margin: 3px 0; }
.emp-profile-dept  { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.emp-profile-personality {
  display: inline-block; font-size: 10px; padding: 2px 8px;
  background: rgba(124,92,216,0.15); border: 1px solid rgba(124,92,216,0.3);
  border-radius: 10px; color: #a855f7;
}

.emp-profile-stats { margin-bottom: 14px; }
.stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.stat-key { font-size: 11px; color: rgba(255,255,255,0.45); width: 90px; flex-shrink: 0; }
.stat-val { font-size: 12px; font-weight: 700; width: 28px; text-align: right; flex-shrink: 0; }

.emp-profile-info { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.emp-profile-info b { color: #e8ecf4; }
.emp-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Room detail */
.room-detail { }
.room-detail-type { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.room-detail-desc { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 12px; line-height: 1.5; }
.room-detail-stats { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 12px; }
.room-detail-stats div { color: rgba(255,255,255,0.6); }
.room-detail-stats b  { color: #e8ecf4; }
.room-detail-employees { margin-bottom: 12px; }
.emp-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.room-detail-actions { }

/* Objectives */
.objective-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 8px; margin-bottom: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.15s;
}
.objective-item.completed { opacity: 0.6; border-color: rgba(34,197,94,0.2); }
.objective-icon { flex-shrink: 0; margin-top: 2px; }
.objective-label { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.objective-desc  { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.4; }
.objective-reward { font-size: 11px; color: #f59e0b; margin-top: 4px; font-weight: 600; }

/* Company overview */
.company-name-large { font-size: 24px; font-weight: 900; color: #e8ecf4; margin-bottom: 4px; }
.company-stage-large { font-size: 14px; font-weight: 700; letter-spacing: 1px; margin-bottom: 2px; }
.company-ceo   { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 16px; }

.company-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.cs {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px; background: rgba(255,255,255,0.03); border-radius: 8px;
  font-size: 11px; color: rgba(255,255,255,0.45);
}
.cs b { font-size: 18px; color: #00c8ff; font-variant-numeric: tabular-nums; }

/* Event modal */
.modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative; z-index: 1;
  width: 500px;
  background: rgba(10,14,26,0.98);
  border: 1px solid rgba(0,200,255,0.25);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }

.modal-header { margin-bottom: 16px; }
.modal-type-badge {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  border-radius: 10px; padding: 3px 10px; font-weight: 700;
  display: inline-block; margin-bottom: 8px;
}
.badge-positive  { background: rgba(34,197,94,0.2);  color:#22c55e;  border:1px solid rgba(34,197,94,0.4); }
.badge-negative  { background: rgba(239,68,68,0.2);  color:#ef4444;  border:1px solid rgba(239,68,68,0.4); }
.badge-critical  { background: rgba(220,38,38,0.3);  color:#ff4444;  border:1px solid rgba(220,38,38,0.5); }
.badge-opportunity{ background: rgba(245,158,11,0.2); color:#f59e0b; border:1px solid rgba(245,158,11,0.4); }
.badge-info      { background: rgba(0,200,255,0.15); color:#00c8ff;  border:1px solid rgba(0,200,255,0.3); }

.modal-title { font-size: 20px; font-weight: 800; color: #e8ecf4; }
.modal-body  { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 20px; }

.modal-choices { display: flex; flex-direction: column; gap: 8px; }
.btn-choice {
  width: 100%; padding: 12px 16px; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: #e8ecf4; font-size: 13px;
  cursor: pointer; transition: all 0.15s;
}
.btn-choice:hover { background: rgba(0,200,255,0.1); border-color: rgba(0,200,255,0.4); color: #00c8ff; }

/* Notifications */
#notifications {
  position: fixed;
  bottom: 60px; right: 10px;
  z-index: 500;
  pointer-events: none;
}

/* Speed controls */
#speed-controls {
  position: fixed;
  bottom: 12px; left: 82px;
  display: flex; gap: 4px;
  z-index: 400;
}

.speed-btn {
  height: 32px; min-width: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,18,32,0.95); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; color: rgba(255,255,255,0.5);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.15s;
  padding: 0 10px;
}
.speed-btn:hover { border-color: rgba(0,200,255,0.5); color: #00c8ff; }
.speed-btn.active { background: rgba(0,200,255,0.15); border-color: rgba(0,200,255,0.6); color: #00c8ff; }

/* Utilities */
.hidden { display: none !important; }
.muted  { color: rgba(255,255,255,0.35); font-size: 12px; }
.section-title {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin: 12px 0 8px;
}
.badge {
  display: inline-block; border-radius: 10px;
  padding: 2px 8px; font-size: 10px; font-weight: 600;
}
.loading { text-align: center; padding: 30px; color: rgba(255,255,255,0.4); }
.empty-slots { text-align: center; padding: 30px; color: rgba(255,255,255,0.3); font-size: 13px; }

/* Scrollable panel body */
.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(0,200,255,0.2); }

/* Animations */
@keyframes fadeIn { from{opacity:0;transform:translateY(-4px);}to{opacity:1;transform:translateY(0);} }
.game-panel { animation: fadeIn 0.2s ease; }
