/* ============================================
   Mono + Vivid Accent Theme (Light)
   대경모바일 관리자 대시보드
   
   Design Direction:
   - Pure white background
   - Monochrome grays for depth
   - Single vivid accent: Electric Lime
   - Typography-driven, bold hierarchy
   - Minimal but impactful
   ============================================ */

/* Pretendard 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ============================================
   CSS Custom Properties
   ============================================ */

:root {
  /* Monochrome Palette - Light Mode */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --black: #000000;
  
  /* Vivid Accent - Blue */
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-bright: #60A5FA;
  --accent-dark: #1D4ED8;
  --accent-bg: rgba(37, 99, 235, 0.08);
  --accent-bg-strong: rgba(37, 99, 235, 0.15);
  
  /* Semantic Colors */
  --success: #16A34A;
  --success-bg: rgba(22, 163, 74, 0.1);
  --warning: #CA8A04;
  --warning-bg: rgba(202, 138, 4, 0.1);
  --error: #DC2626;
  --error-bg: rgba(220, 38, 38, 0.1);
  --info: #2563EB;
  --info-bg: rgba(37, 99, 235, 0.1);
  
  /* Text Colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  --text-subtle: var(--gray-400);
  
  /* Backgrounds */
  --bg-base: var(--white);
  --bg-subtle: var(--gray-50);
  --bg-card: var(--white);
  --bg-hover: var(--gray-100);
  --bg-active: var(--gray-200);
  
  /* Borders */
  --border: var(--gray-200);
  --border-light: var(--gray-100);
  --border-dark: var(--gray-300);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 8px 10px rgba(0, 0, 0, 0.04);
  
  /* Border Radius - Sharp */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  
  /* Typography */
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
  
  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode for system UI elements */
:root {
  color-scheme: light;
}

/* ============================================
   Reduced Motion Support
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
}

a:hover {
  color: var(--accent-dark);
}

/* Focus Visible - Accent Ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   Dashboard Layout
   ============================================ */

body.dashboard {
  background: var(--bg-subtle);
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   Sidebar - Clean White
   ============================================ */

.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: width 0.25s var(--ease-out);
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.sidebar.collapsed .sidebar-header {
  padding: 24px 12px;
  justify-content: center;
}

.sidebar-logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: -0.03em;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo-icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.sidebar.collapsed .sidebar-logo span {
  opacity: 0;
  width: 0;
  transition: opacity 0.2s var(--ease-out), width 0.2s var(--ease-out);
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-dark);
}

.sidebar.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
  transition: transform 0.25s var(--ease-out);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

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

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 24px;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s var(--ease-out);
}

.sidebar.collapsed .nav-section-title {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: var(--gray-600);
  text-decoration: none;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
  margin: 2px 0;
}

.sidebar.collapsed .nav-item {
  padding: 14px;
  justify-content: center;
  border-left: none;
  margin: 4px 8px;
  border-radius: var(--radius);
}

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

.nav-item.active {
  background: var(--accent-bg);
  color: var(--accent);
  border-left-color: var(--accent);
}

.sidebar.collapsed .nav-item.active {
  border-left: none;
  background: var(--accent-bg);
}

.nav-icon {
  width: 20px;
  height: 20px;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar.collapsed .nav-icon {
  margin-right: 0;
}

.nav-text {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s var(--ease-out), width 0.2s var(--ease-out);
}

.sidebar.collapsed .nav-text {
  opacity: 0;
  width: 0;
}

.nav-placeholder {
  padding: 14px 24px;
  color: var(--gray-400);
  font-size: 13px;
  font-style: italic;
}

.sidebar.collapsed .nav-placeholder {
  display: none;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-footer .nav-item.logout:hover {
  color: var(--error);
  background: var(--error-bg);
}

/* Collapsed Tooltips */
.sidebar.collapsed .nav-item {
  position: relative;
}

.sidebar.collapsed .nav-item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 12px;
  padding: 8px 14px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Main Content Area
   ============================================ */

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg-subtle);
  transition: margin-left 0.25s var(--ease-out);
}

/* Dashboard Header */
.dashboard-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dashboard-search {
  position: relative;
  width: 320px;
}

.dashboard-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}

.dashboard-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.dashboard-search input::placeholder {
  color: var(--gray-400);
}

.dashboard-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  width: 16px;
  height: 16px;
}

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

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.header-btn:hover {
  background: var(--accent);
  color: var(--white);
}

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

.header-btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.header-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-dark);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.dashboard-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  margin: 0;
  letter-spacing: -0.03em;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  border: 1px solid var(--border);
}

.dashboard-user::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* Dashboard Content */
.dashboard-content {
  padding: 32px 40px;
}

/* ============================================
   메인 대시보드 전용 스타일
   ============================================ */

.main-dashboard {
  padding: 24px 32px;
  max-width: 1400px;
}

/* 환영 섹션 - Compact */
.welcome-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* Accent line */
.welcome-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-icon {
  font-size: 24px;
  margin-bottom: 0;
  display: inline;
  margin-right: 8px;
}

.welcome-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 2px;
}

.welcome-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.welcome-date svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* 대시보드 그리드 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* Card Base */
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  position: relative;
  box-shadow: var(--shadow-xs);
}

.dashboard-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dashboard-card-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.dashboard-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gray-500);
}

/* Card Variants */
.card-primary .dashboard-card-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.card-primary .dashboard-card-icon svg {
  color: var(--white);
}

.card-warning .dashboard-card-icon {
  background: var(--warning-bg);
  border-color: transparent;
}

.card-warning .dashboard-card-icon svg {
  color: var(--warning);
}

.card-success .dashboard-card-icon {
  background: var(--success-bg);
  border-color: transparent;
}

.card-success .dashboard-card-icon svg {
  color: var(--success);
}

.card-info .dashboard-card-icon {
  background: var(--info-bg);
  border-color: transparent;
}

.card-info .dashboard-card-icon svg {
  color: var(--info);
}

/* Big Numbers */
.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}

/* 빠른 실행 카드 */
.quick-actions-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
}

.quick-actions-card .dashboard-card-header {
  margin-bottom: 12px;
}

.quick-actions-card .dashboard-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.quick-action-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.quick-action-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent);
}

.quick-action-icon svg {
  width: 14px;
  height: 14px;
  color: var(--white);
}

.quick-action-icon.icon-new { background: var(--accent); }
.quick-action-icon.icon-list { background: var(--black); }
.quick-action-icon.icon-pending { background: var(--warning); }
.quick-action-icon.icon-site { background: var(--gray-600); }

.quick-action-text {
  font-size: 14px;
  font-weight: 600;
}

/* 하단 정보 카드 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.info-card-icon {
  font-size: 14px;
}

.info-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-card-content {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.6;
}

.info-card-content p {
  margin: 0;
}

/* ============================================
   Stats Cards
   ============================================ */

.stats-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

.stat-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.stat-icon {
  width: 18px;
  height: 18px;
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-badge {
  display: none;
}

/* Stat Card Variants */
.stat-card-pending .stat-icon-wrapper {
  background: var(--warning-bg);
  border-color: transparent;
  color: var(--warning);
}

.stat-card-happycall .stat-icon-wrapper {
  background: rgba(168, 85, 247, 0.1);
  border-color: transparent;
  color: #9333EA;
}

.stat-card-dispatched .stat-icon-wrapper {
  background: var(--info-bg);
  border-color: transparent;
  color: var(--info);
}

.stat-card-completed .stat-icon-wrapper {
  background: var(--success-bg);
  border-color: transparent;
  color: var(--success);
}

.stat-card-primary .stat-icon-wrapper {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Clickable stat cards */
a.stat-card-clickable {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.stat-card-clickable:hover {
  transform: translateY(-2px);
}

/* Active stat cards */
.stat-card-active {
  border-color: var(--accent);
  border-width: 2px;
}

.stat-card-pending.stat-card-active {
  border-color: var(--warning);
}

.stat-card-happycall.stat-card-active {
  border-color: #9333EA;
}

.stat-card-dispatched.stat-card-active {
  border-color: var(--info);
}

.stat-card-primary.stat-card-active {
  border-color: var(--accent);
}

/* ============================================
   Section Card
   ============================================ */

.dashboard-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

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

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.1s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-dark);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

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

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

.btn-danger {
  background: var(--error);
  border-color: var(--error);
  color: var(--white);
}

.btn-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
}

.btn-secondary {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--gray-600);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  min-width: 180px;
  margin-top: 6px;
  padding: 8px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out);
}

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

.dropdown-item-danger {
  color: var(--error);
}

.dropdown-item-danger:hover {
  background: var(--error-bg);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.select-sm {
  padding: 10px 36px 10px 14px !important;
  font-size: 13px !important;
  min-width: auto !important;
}

.input-sm {
  padding: 10px 14px !important;
  font-size: 13px !important;
}

button[type="submit"].btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

a.btn {
  text-decoration: none;
}

/* ============================================
   Form Elements
   ============================================ */

input[type="text"],
input[type="date"],
input[type="password"],
input[type="number"],
select,
textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

input[type="text"]:hover,
input[type="date"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
  border-color: var(--border-dark);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* ============================================
   Toolbar / Filters
   ============================================ */

.toolbar {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.mobile-filter-toggle {
  display: none;
}

.mobile-filter-panel {
  width: 100%;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-filter-actionbar {
  display: none;
}

.filters input[type="text"] {
  min-width: 260px;
}

.filters select {
  min-width: 150px;
}

.filter-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

button[type="submit"] {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out);
  font-family: inherit;
}

button[type="submit"]:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

button {
  font-family: inherit;
}

/* ============================================
   Table
   ============================================ */

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-subtle);
  color: var(--gray-500);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border-light);
  white-space: nowrap;
}

thead th:last-child {
  border-right: none;
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

tbody td:last-child {
  border-right: none;
}

tbody tr {
  transition: background-color 0.15s var(--ease-out);
}

tbody tr:hover {
  background: var(--bg-hover);
}

.order-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--accent-bg);
}

tbody tr[onclick],
tbody tr[style*="cursor"] {
  cursor: pointer;
}

/* Table Cell Styles */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
}

.name-cell {
  font-weight: 700;
  color: var(--text-primary);
}

.memo-cell {
  font-size: 12px;
  color: var(--gray-500);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-cell {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

/* Column Widths */
thead th.col-checkbox { width: 40px; text-align: center; }
thead th.col-no { width: 50px; }
thead th.col-received-date { width: 110px; }
thead th.col-completed-date { width: 90px; }
thead th.col-manager { width: 80px; }
thead th.col-status { width: 90px; }
thead th.col-agency { width: 80px; }
thead th.col-site { width: 80px; }
thead th.col-name { width: 80px; }
thead th.col-memo { width: 110px; }
thead th.col-jumin { width: 130px; }
thead th.col-tel { width: 120px; }
thead th.col-product { width: 150px; }
thead th.col-color { width: 70px; }
thead th.col-join-type { width: 80px; }

tbody td:first-child {
  text-align: center;
}

/* ============================================
   Status
   ============================================ */

.status-text {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-text.status-신청완료 { color: var(--gray-500); }
.status-text.status-해피콜완료 { color: var(--warning); }
.status-text.status-발송완료 { color: #9333EA; }
.status-text.status-개통완료 { color: var(--success); }
.status-text.status-신청취소 { color: var(--error); }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.status-신청완료 { 
  background: var(--gray-100); 
  color: var(--gray-600); 
}
.status-badge.status-해피콜완료 { 
  background: var(--warning-bg); 
  color: var(--warning); 
}
.status-badge.status-발송완료 { 
  background: rgba(168, 85, 247, 0.1); 
  color: #9333EA; 
}
.status-badge.status-개통완료 { 
  background: var(--success-bg); 
  color: var(--success); 
}
.status-badge.status-신청취소 { 
  background: var(--error-bg); 
  color: var(--error); 
}

/* ============================================
   Pagination
   ============================================ */

.paging {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 24px 28px;
  border-top: 1px solid var(--border);
}

.page {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
  background: var(--bg-card);
}

.page:hover {
  background: var(--bg-hover);
  border-color: var(--border-dark);
  color: var(--text-primary);
}

.page.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.muted {
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 600;
}

/* ============================================
   Card Component
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  text-align: center;
  padding: 100px 24px;
  color: var(--gray-400);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.4;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--gray-400);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  .sidebar.collapsed {
    width: 100%;
  }
  
  .dashboard-main {
    margin-left: 0 !important;
    padding-bottom: 96px;
  }
  
  .main-dashboard {
    padding: 24px;
  }
  
  .dashboard-header {
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .dashboard-content {
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .toolbar {
    padding: 16px;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-filter-panel {
    display: none;
    margin-top: 12px;
  }

  .mobile-filter-panel.is-open {
    display: block;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filters input[type="text"],
  .filters select {
    min-width: 100%;
  }

  .filters .text-muted {
    display: none;
  }

  .filter-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .filter-group > * {
    flex: 1 1 100%;
  }

  .filter-actions {
    display: none;
  }

  .mobile-filter-actionbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.08);
  }

  .mobile-filter-actionbar.is-open {
    display: flex;
  }

  .mobile-filter-actionbar .btn,
  .mobile-filter-actionbar button {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .welcome-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
  }
  
  .welcome-title {
    font-size: 28px;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .quick-action-btn {
    width: 100%;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Login Page
   ============================================ */

body.login-page {
  background: var(--bg-subtle);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.login-page .login-container {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* Accent line */
body.login-page .login-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

body.login-page .logo {
  text-align: left;
  margin-bottom: 48px;
}

body.login-page .logo h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

body.login-page .logo p {
  font-size: 14px;
  color: var(--gray-500);
}

body.login-page .form-group {
  margin-bottom: 28px;
}

body.login-page label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.login-page input[type="text"],
body.login-page input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-subtle);
}

body.login-page input[type="text"]:focus,
body.login-page input[type="password"]:focus {
  background: var(--bg-card);
}

body.login-page .error-message {
  background: var(--error-bg);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--error);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

body.login-page .btn-login {
  width: 100%;
  padding: 16px 28px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out);
}

body.login-page .btn-login:hover {
  background: var(--accent-dark);
}

body.login-page .login-type-group {
  margin-bottom: 28px;
}

body.login-page .login-type-options {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

body.login-page .login-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
  background: var(--bg-subtle);
}

body.login-page .login-type-option:hover {
  border-color: var(--border-dark);
}

body.login-page .login-type-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
}

body.login-page .login-type-option input[type="radio"] {
  accent-color: var(--accent);
}

body.login-page .login-type-option label {
  margin: 0;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

body.login-page .info-text {
  text-align: center;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray-400);
}

/* ============================================
   Order Write Page
   ============================================ */

body.order-write {
  background: var(--bg-subtle);
  min-height: 100vh;
}

body.order-write .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

body.order-write .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

body.order-write .title {
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
}

body.order-write .btns {
  display: flex;
  gap: 12px;
}

body.order-write .card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

body.order-write .sec {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
}

body.order-write .sec:first-child {
  border-top: none;
}

body.order-write .sec h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.order-write .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px 20px;
}

body.order-write .col-12 { grid-column: span 12; }
body.order-write .col-6 { grid-column: span 6; }
body.order-write .col-4 { grid-column: span 4; }
body.order-write .col-3 { grid-column: span 3; }
body.order-write .col-2 { grid-column: span 2; }

body.order-write label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.order-write input[type="text"],
body.order-write input[type="number"],
body.order-write input[type="date"],
body.order-write select,
body.order-write textarea {
  width: 100%;
  padding: 14px 18px;
}

body.order-write textarea {
  min-height: 120px;
  resize: vertical;
}

body.order-write .inline {
  display: flex;
  gap: 10px;
}

body.order-write .inline input {
  flex: 1;
}

body.order-write .radio {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.order-write .radio label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
  background: var(--bg-subtle);
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
}

body.order-write .radio label:hover {
  border-color: var(--border-dark);
}

body.order-write .radio label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-dark);
}

body.order-write .radio input[type="radio"] {
  accent-color: var(--accent);
}

body.order-write .hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 8px;
}

body.order-write input[readonly],
body.order-write select:disabled,
body.order-write textarea[readonly] {
  background: var(--bg-subtle);
  color: var(--gray-400);
  cursor: not-allowed;
}

body.order-write .rowline {
  border-top: 1px dashed var(--border);
  margin: 20px 0;
}

@media (max-width: 900px) {
  body.order-write .col-6,
  body.order-write .col-4,
  body.order-write .col-3,
  body.order-write .col-2 {
    grid-column: span 12;
  }
  
  body.order-write .top {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ============================================
   Agency/Site Manage Pages
   ============================================ */

body.agency-manage,
body.site-manage {
  background: var(--bg-subtle);
  min-height: 100vh;
  padding: 32px;
}

body.agency-manage .wrap,
body.site-manage .wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

body.agency-manage h1,
body.site-manage h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 36px;
  letter-spacing: -0.03em;
}

body.agency-manage .form-group,
body.site-manage .form-group {
  margin-bottom: 24px;
}

body.agency-manage label,
body.site-manage label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.agency-manage input[type="text"],
body.agency-manage input[type="password"],
body.site-manage input[type="text"],
body.site-manage input[type="password"] {
  width: 100%;
  padding: 14px 18px;
}

body.agency-manage .form-grid,
body.site-manage .form-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.agency-manage .form-grid .form-group,
body.site-manage .form-grid .form-group {
  margin-bottom: 24px;
}

body.agency-manage input[type="color"],
body.site-manage input[type="color"] {
  width: 100%;
  height: 48px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-subtle);
}

body.agency-manage .hint,
body.site-manage .hint {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 8px;
}

body.agency-manage .btn,
body.site-manage .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out);
  text-decoration: none;
}

body.agency-manage .btn:hover,
body.site-manage .btn:hover {
  background: var(--accent-dark);
}

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

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-grid .form-group {
  margin-bottom: 24px;
}

input[type="color"] {
  width: 100%;
  height: 48px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-subtle);
}

.list {
  margin-top: 36px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg-subtle);
}

.list-item-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* List control buttons */
.btn-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  font-size: 12px !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s var(--ease-out), transform 0.1s var(--ease-out);
  height: 36px;
  line-height: 1;
}

.btn-ctrl:active {
  transform: scale(0.95);
}

.btn-ctrl.btn-order {
  background: var(--gray-200);
  color: var(--gray-700);
  min-width: 36px;
  padding: 10px 12px !important;
}

.btn-ctrl.btn-order:hover {
  background: var(--gray-300);
}

.btn-ctrl.btn-order:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ctrl.btn-edit {
  background: var(--accent);
  color: var(--white);
}

.btn-ctrl.btn-edit:hover {
  background: var(--accent-dark);
}

.btn-ctrl.btn-del {
  background: var(--error);
  color: var(--white);
}

.btn-ctrl.btn-del:hover {
  background: #B91C1C;
}

.btn-danger {
  background: var(--error) !important;
  color: var(--white) !important;
}

.btn-danger:hover {
  background: #B91C1C !important;
}

.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-400);
}

/* ============================================
   Delete All Orders Page
   ============================================ */

body.delete-all-orders {
  background: var(--bg-subtle);
  min-height: 100vh;
  padding: 32px;
}

body.delete-all-orders .container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

body.delete-all-orders h1 {
  color: var(--error);
  margin-bottom: 36px;
  letter-spacing: -0.03em;
}

body.delete-all-orders .alert {
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-weight: 600;
}

body.delete-all-orders .alert-danger {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

body.delete-all-orders .alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

body.delete-all-orders .alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(202, 138, 4, 0.2);
}

/* ============================================
   Wrap Container (Legacy)
   ============================================ */

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.title {
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--accent); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide on specific breakpoints */
@media (max-width: 1200px) {
  .col-hide-lg { display: none; }
}

@media (max-width: 992px) {
  .col-hide-md { display: none; }
}

@media (max-width: 768px) {
  .col-hide-sm { display: none; }
}

/* ============================================
   Animations - Subtle Entry
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-dashboard .welcome-section {
  animation: fadeIn 0.35s var(--ease-out) forwards;
}

.main-dashboard .dashboard-grid .dashboard-card {
  animation: fadeIn 0.35s var(--ease-out) forwards;
  opacity: 0;
}

.main-dashboard .dashboard-grid .dashboard-card:nth-child(1) { animation-delay: 0.06s; }
.main-dashboard .dashboard-grid .dashboard-card:nth-child(2) { animation-delay: 0.12s; }
.main-dashboard .dashboard-grid .dashboard-card:nth-child(3) { animation-delay: 0.18s; }
.main-dashboard .dashboard-grid .dashboard-card:nth-child(4) { animation-delay: 0.24s; }

.main-dashboard .quick-actions-card {
  animation: fadeIn 0.35s var(--ease-out) 0.3s forwards;
  opacity: 0;
}

.main-dashboard .info-grid .info-card {
  animation: fadeIn 0.35s var(--ease-out) forwards;
  opacity: 0;
}

.main-dashboard .info-grid .info-card:nth-child(1) { animation-delay: 0.36s; }
.main-dashboard .info-grid .info-card:nth-child(2) { animation-delay: 0.42s; }
