/* ============================================
   BRICKET.AI — Early Access Operations Theme
   Official Brand Palette (Brick Terra & Dark Obsidian)
   ============================================ */

.dashboard-body {
  display: flex;
  min-height: 100vh;
  background-color: #08090E;
  color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* OTP SECURITY LOCK SCREEN OVERLAY */
.otp-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 9, 14, 0.96);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.otp-screen-overlay.unlocked {
  opacity: 0;
  pointer-events: none;
}

.otp-card {
  background: #0C0D14;
  border: 1px solid rgba(232, 99, 74, 0.4);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(232, 99, 74, 0.15);
}

.otp-digit-input {
  width: 46px;
  height: 52px;
  text-align: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #E8634A;
  background: rgba(18, 19, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  outline: none;
}

.otp-digit-input:focus {
  border-color: #E8634A;
  box-shadow: 0 0 12px rgba(232, 99, 74, 0.4);
  background: rgba(232, 99, 74, 0.08);
}

/* Sidebar Layout */
.sidebar {
  width: 270px;
  background: #0C0D14;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 1.5rem 1rem;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 10px;
}

.user-pill .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8634A 0%, #E88A5A 100%);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.user-pill .user-info {
  display: flex;
  flex-direction: column;
}

.user-pill .name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.user-pill .role {
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.6);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 1.2rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  color: rgba(248, 250, 252, 0.6);
  border: none;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.active {
  background: rgba(232, 99, 74, 0.12);
  color: #E8634A;
  font-weight: 700;
  border: 1px solid rgba(232, 99, 74, 0.35);
}

.nav-item.active svg {
  stroke: #E8634A;
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main Content Area */
.main-content {
  margin-left: 270px;
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 1400px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.dash-subtitle {
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-time-badge {
  background: rgba(232, 99, 74, 0.1);
  border: 1px solid rgba(232, 99, 74, 0.3);
  color: #E88A5A;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tabs Display Handler */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Panel Card Container */
.panel-card {
  background: rgba(18, 19, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.panel-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* UNIFORM CHIPS / EXAMPLE TAB BUTTONS DESIGN SYSTEM */
.example-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.example-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  background: rgba(12, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.75);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.example-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.example-tab-btn.active {
  background: rgba(232, 99, 74, 0.15);
  border: 1px solid rgba(232, 99, 74, 0.45);
  color: #E8634A;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(232, 99, 74, 0.2);
}

/* UNIFIED EXAMPLE DISPLAY CARD STYLES */
.example-card-display {
  background: rgba(12, 13, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem;
}

.ex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ex-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.ex-subtitle {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 2px;
}

.ex-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.2rem 0;
}

.ex-kpi-card {
  background: rgba(18, 19, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.ex-kpi-card .lbl {
  font-size: 0.73rem;
  color: rgba(248, 250, 252, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ex-kpi-card .val {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #E8634A;
  margin-top: 4px;
}

.ex-agents-box {
  background: rgba(232, 99, 74, 0.06);
  border: 1px solid rgba(232, 99, 74, 0.25);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

/* KPI Banner Grid */
.kpi-banner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.kpi-box {
  background: rgba(12, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem;
  border-radius: 12px;
  text-align: center;
}

.kpi-box.highlight-kpi {
  background: rgba(232, 99, 74, 0.12);
  border-color: rgba(232, 99, 74, 0.4);
}

.kpi-val {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.7rem;
  font-weight: 800;
  color: #E8634A;
}

.kpi-lbl {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Funnel Steps */
.funnel-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.funnel-step {
  flex: 1;
  background: rgba(12, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.funnel-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(232, 99, 74, 0.2);
  color: #E8634A;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.funnel-step .step-info .title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.funnel-step .step-info .desc {
  font-size: 0.75rem;
  color: #E88A5A;
  font-weight: 600;
}

.funnel-arrow {
  color: rgba(248, 250, 252, 0.3);
  font-size: 1.2rem;
  font-weight: 800;
}

/* Daily Task Checklist */
.daily-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(12, 13, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #cbd5e1;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  accent-color: #E8634A;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* CRM Toolbar & Table */
.crm-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 240px;
}

.form-control {
  width: 100%;
  background: rgba(12, 13, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
}

.form-control:focus {
  border-color: #E8634A;
  box-shadow: 0 0 8px rgba(232, 99, 74, 0.35);
}

.crm-actions {
  display: flex;
  gap: 8px;
}

.tracker-table-container {
  overflow-x: auto;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.lead-table th {
  background: rgba(12, 13, 20, 0.9);
  color: rgba(248, 250, 252, 0.6);
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lead-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.lead-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.action-step-btn {
  background: rgba(232, 99, 74, 0.15);
  border: 1px solid rgba(232, 99, 74, 0.35);
  color: #E88A5A;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.action-step-btn:hover {
  background: rgba(232, 99, 74, 0.3);
}

/* RRSS Content Planner Cards Grid */
.rrss-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.rrss-card {
  background: rgba(12, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rrss-badge {
  background: rgba(232, 99, 74, 0.15);
  color: #E88A5A;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.rrss-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.rrss-desc {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.6);
}

/* Daily Meeting Text Report Box */
.daily-summary-box {
  background: #08090E;
  border: 1px solid rgba(232, 99, 74, 0.35);
  padding: 1.2rem;
  border-radius: 10px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.83rem;
  color: #F7C948;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay.active {
  display: flex;
}

.lead-modal-card {
  background: #0C0D14;
  border: 1px solid rgba(232, 99, 74, 0.4);
  border-radius: 14px;
  padding: 1.8rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 1.15rem;
}

.close-btn {
  background: none;
  border: none;
  color: rgba(248, 250, 252, 0.6);
  font-size: 1.4rem;
  cursor: pointer;
}
