/* KEVIN AI Virtual Office OS - Unified Dual Dashboard Style */
body {
  margin: 0;
  padding: 0;
  background: #070b12;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e2e8f0;
  overflow-x: hidden;
}

#mainHeaderBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  background: rgba(9, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #00f2fe;
  z-index: 999999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.main-dashboard-grid {
  margin-top: 75px;
  width: 98vw;
  max-width: 1860px;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 20px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .main-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.office-viewport-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 18px;
  background: rgba(11, 19, 32, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.2);
  box-sizing: border-box;
}

.office-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #111c2e;
  border-radius: 12px;
  border-left: 5px solid #00f2fe;
}

.office-title-group h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  border-radius: 14px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.office-workspace-split {
  display: grid;
  grid-template-columns: calc(100% - 340px) 320px;
  gap: 16px;
  width: 100%;
}

@media (max-width: 1400px) {
  .office-workspace-split {
    grid-template-columns: 1fr;
  }
}

.office-left-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.canvas-map-wrapper {
  position: relative;
  width: 100%;
  height: 620px;
  background: #05080e;
  border-radius: 14px;
  border: 2px solid rgba(0, 242, 254, 0.25);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

#office3dContainer {
  width: 100%;
  height: 100%;
}

.comm-log-box {
  height: 110px;
  background: #05080f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  overflow-y: auto;
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comm-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.comm-sender { font-weight: 800; color: #f59e0b; }
.comm-arrow { color: #64748b; }
.comm-target { font-weight: 700; color: #38bdf8; }
.comm-text { color: #e2e8f0; }

.office-right-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #0f172a;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.todo-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-count-badge {
  background: #10b981;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.todo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
}

.dispatch-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.dispatch-input-wrapper {
  display: flex;
  gap: 8px;
}

.dispatch-input-wrapper input {
  flex: 1;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.85rem;
}

.btn-dispatch {
  background: #00f2fe;
  border: none;
  color: #020617;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}
