/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors - Solid */
  --primary: #0277BD;
  --primary-dark: #01579B;
  --primary-light: #4FC3F7;
  
  /* Status Colors */
  --status-new: #E3F2FD;
  --status-new-text: #1976D2;
  --status-texting: #FFF3E0;
  --status-texting-text: #F57C00;
  --status-meeting: #E8F5E9;
  --status-meeting-text: #388E3C;
  --status-proposal: #F3E5F5;
  --status-proposal-text: #7B1FA2;
  --status-negotiation: #FFF8E1;
  --status-negotiation-text: #FFA000;
  --status-won: #C8E6C9;
  --status-won-text: #2E7D32;
  --status-lost: #FFCDD2;
  --status-lost-text: #C62828;
  
  /* Neutral Colors */
  --bg-primary: #F5F7FA;
  --bg-white: #FFFFFF;
  --bg-sidebar: #1E293B;
  --bg-sidebar-hover: #334155;
  --bg-sidebar-active: #0277BD;
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-sidebar: #94A3B8;
  --text-sidebar-active: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  
  /* Sidebar */
  --sidebar-width: 260px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==================== */
/* LOGIN PAGE           */
/* ==================== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-box {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-hover);
  border-top: 4px solid var(--primary);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 16px;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.login-header .subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* ==================== */
/* APP LAYOUT           */
/* ==================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ==================== */
/* SIDEBAR              */
/* ==================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: var(--text-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.sidebar-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-sidebar-active);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-sidebar);
  opacity: 0.6;
  padding: 8px 12px;
  margin-bottom: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-sidebar);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-sidebar-active);
}

.nav-item.active {
  background: var(--bg-sidebar-active);
  color: var(--text-sidebar-active);
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-sidebar-hover);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sidebar-active);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 12px;
  color: var(--text-sidebar);
  text-transform: capitalize;
}

.btn-logout-sidebar {
  background: none;
  border: none;
  color: var(--text-sidebar);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-logout-sidebar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--status-lost-text);
}

/* ==================== */
/* MAIN CONTENT         */
/* ==================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px 32px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==================== */
/* STATS CARDS          */
/* ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-icon.blue { background: #E3F2FD; color: #1976D2; }
.stat-icon.green { background: #E8F5E9; color: #388E3C; }
.stat-icon.orange { background: #FFF3E0; color: #F57C00; }
.stat-icon.purple { background: #F3E5F5; color: #7B1FA2; }

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-sublabel {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  opacity: 0.8;
}

/* ==================== */
/* CONTROLS             */
/* ==================== */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-box {
  display: flex;
  gap: 8px;
}

.search-box input {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 300px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==================== */
/* BUTTONS              */
/* ==================== */
button {
  cursor: pointer;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #E9ECEF;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #DEE2E6;
}

.btn-danger {
  background: #DC3545;
  color: white;
}

.btn-danger:hover {
  background: #C82333;
}

.btn-edit {
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-delete {
  background: #DC3545;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==================== */
/* FILTER TABS          */
/* ==================== */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ==================== */
/* TABLE                */
/* ==================== */
.table-container {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: #F8F9FA;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  font-size: 14px;
}

tr:hover {
  background: #F8F9FA;
}

/* ==================== */
/* STATUS BADGES        */
/* ==================== */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-new { background: var(--status-new); color: var(--status-new-text); }
.status-texting { background: var(--status-texting); color: var(--status-texting-text); }
.status-meeting { background: var(--status-meeting); color: var(--status-meeting-text); }
.status-proposal { background: var(--status-proposal); color: var(--status-proposal-text); }
.status-negotiation { background: var(--status-negotiation); color: var(--status-negotiation-text); }
.status-won { background: var(--status-won); color: var(--status-won-text); }
.status-lost { background: var(--status-lost); color: var(--status-lost-text); }

/* ==================== */
/* EMPTY STATE          */
/* ==================== */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 16px;
}

/* ==================== */
/* MODAL                */
/* ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-warning {
  border-top: 4px solid #FFC107;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 20px;
  color: var(--primary-dark);
}

.modal-body {
  padding: 24px;
}

.close-btn {
  background: none;
  font-size: 24px;
  color: var(--text-secondary);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--text-primary);
}

/* ==================== */
/* FORM                 */
/* ==================== */
form {
  padding: 24px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

input, select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.error-message {
  background: var(--status-lost);
  color: var(--status-lost-text);
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
}

.success-message {
  background: var(--status-won);
  color: var(--status-won-text);
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
}

/* ==================== */
/* MULTI-STEP FORM      */
/* ==================== */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step.completed .step-number {
  background: var(--status-won);
  border-color: var(--status-won-text);
  color: var(--status-won-text);
}

.step-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 500;
}

.step-content {
  display: none;
}

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

.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* ==================== */
/* CONFIRMATION PAGE    */
/* ==================== */
.confirmation-summary {
  background: #F8F9FA;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.confirmation-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.confirmation-item:last-child {
  border-bottom: none;
}

.confirmation-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.confirmation-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==================== */
/* KANBAN BOARD         */
/* ==================== */
.kanban-board {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  min-width: 100%;
}

.kanban-column {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-height: 500px;
  min-width: 280px;
  flex-shrink: 0;
}

.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.kanban-title {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kanban-count {
  background: #F0F0F0;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kanban-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  cursor: move;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.kanban-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.kanban-column.drag-over {
  background: #E3F2FD;
  border: 2px dashed var(--primary);
  box-shadow: 0 0 10px rgba(2, 119, 189, 0.3);
}

.kanban-cards.drag-over {
  background: #E3F2FD;
  border-radius: 8px;
  min-height: 100px;
  border: 2px dashed var(--primary);
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(3deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.kanban-card.won {
  border-left: 4px solid var(--status-won-text);
}

.kanban-card.lost {
  border-left: 4px solid var(--status-lost-text);
}

.card-company {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-details {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.card-deal-size {
  font-weight: 600;
  color: var(--status-won-text);
  font-size: 14px;
  margin-top: 8px;
}

.card-pic {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* Date picker (not calendar format) */
.date-picker-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.date-picker-group select {
  flex: 1;
}

.date-picker-group label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 0;
  white-space: nowrap;
}

/* Kanban card modal */
.kanban-modal-content {
  max-width: 700px;
}

.kanban-modal-body {
  padding: 24px;
}

.deal-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.deal-detail-row:last-child {
  border-bottom: none;
}

.deal-detail-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
}

.deal-detail-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  text-align: right;
}

/* ==================== */
/* TOAST                */
/* ==================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 1001;
  box-shadow: var(--shadow-hover);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: var(--status-won-text); }
.toast.error { background: var(--status-lost-text); }
.toast.warning { background: #F57C00; }

/* ==================== */
/* ACTIONS CELL         */
/* ==================== */
.actions-cell {
  display: flex;
  gap: 8px;
}

/* ==================== */
/* DEAL SIZE            */
/* ==================== */
.deal-size {
  font-weight: 600;
  color: var(--status-won-text);
}

/* ==================== */
/* EXISTING DEALS       */
/* ==================== */
#existingDeals {
  margin-top: 16px;
}

.existing-deal-item {
  background: #F8F9FA;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.existing-deal-item strong {
  color: var(--primary);
}

/* ==================== */
/* PASSWORD INPUT       */
/* ==================== */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--primary);
}

/* ==================== */
/* OTP INPUT            */
/* ==================== */
.otp-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

.otp-input {
  width: 50px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
}

.otp-input:focus {
  border-color: var(--primary);
  outline: none;
}

/* ==================== */
/* LOGIN STEPS          */
/* ==================== */
.login-step {
  transition: opacity 0.3s;
}

/* ==================== */
/* CARD PANEL           */
/* ==================== */
.card-panel {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.card-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.card-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================== */
/* USER MANAGEMENT      */
/* ==================== */
.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.role-super_admin {
  background: #FFEBEE;
  color: #C62828;
}

.role-supervisor {
  background: #E3F2FD;
  color: #1565C0;
}

.role-sales_staff {
  background: #E8F5E9;
  color: #2E7D32;
}

/* ==================== */
/* DASHBOARD GRID       */
/* ==================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* ==================== */
/* TOP PERFORMERS       */
/* ==================== */
.performer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.performer-item:last-child {
  border-bottom: none;
}

.performer-item:hover {
  background: var(--bg-primary);
}

.performer-item.top-performer {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 8px;
  border-bottom: none;
  margin-bottom: 8px;
}

.performer-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.top-performer .performer-rank {
  background: white;
}

.performer-info {
  flex: 1;
  min-width: 0;
}

.performer-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.performer-stats {
  font-size: 12px;
  color: var(--text-secondary);
}

.performer-amount {
  font-weight: 700;
  color: var(--status-won-text);
  font-size: 14px;
  white-space: nowrap;
}

/* ==================== */
/* STATUS DISTRIBUTION  */
/* ==================== */
.status-distribution {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-stat-item {
  background: var(--bg-primary);
  padding: 16px 20px;
  border-radius: 8px;
  min-width: 100px;
  text-align: center;
  flex: 1;
}

.status-stat-count {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ==================== */
/* HIDE ON MOBILE       */
/* ==================== */
.hide-mobile {
  display: table-cell;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 70px;
    overflow: hidden;
  }
  
  .sidebar-logo-text,
  .nav-section-title,
  .nav-item span,
  .user-info,
  .user-name,
  .user-role {
    display: none;
  }
  
  .sidebar-header {
    padding: 16px;
    justify-content: center;
  }
  
  .sidebar-logo {
    justify-content: center;
  }
  
  .nav-item {
    justify-content: center;
    padding: 12px;
  }
  
  .nav-item i {
    margin: 0;
  }
  
  .user-profile {
    justify-content: center;
    padding: 8px;
  }
  
  .main-content {
    margin-left: 70px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    width: 280px;
    z-index: 1001;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-logo-text,
  .nav-section-title,
  .nav-item span,
  .user-info,
  .user-name,
  .user-role {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
  
  .page-header {
    margin-bottom: 16px;
  }
  
  .page-title {
    font-size: 22px;
  }
  
  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .search-box {
    flex-direction: column;
    width: 100%;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  thead, tbody {
    display: table;
    width: 100%;
  }
  
  th, td {
    padding: 10px 8px;
    white-space: nowrap;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .btn-primary, .btn-secondary, .btn-edit, .btn-delete {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  .actions-cell {
    flex-direction: column;
    gap: 4px;
  }
  
  .actions-cell button {
    width: 100%;
  }
  
  /* Kanban board stays horizontal on mobile - no change */
  /* .kanban-board {
    grid-template-columns: 1fr;
  } */
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* Pipeline value cards on mobile */
  .stat-sublabel {
    font-size: 10px;
    margin-top: 4px;
  }
  
  .stat-card {
    padding: 16px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card-panel {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .status-distribution {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .status-stat-item {
    padding: 12px 8px;
    min-width: auto;
  }
  
  .status-stat-count {
    font-size: 18px;
  }
  
  .performer-item {
    padding: 12px;
    gap: 12px;
  }
  
  .performer-amount {
    font-size: 12px;
  }
  
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .otp-container {
    gap: 8px;
  }
  
  .otp-input {
    width: 42px;
    height: 48px;
    font-size: 20px;
  }
  
  .login-box {
    padding: 24px;
  }
  
  .modal-content {
    margin: 16px;
    max-height: calc(100vh - 32px);
  }
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.show {
  display: block;
}

/* Mobile header visibility */
.mobile-header {
  display: none;
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
  }
  
  .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}
