/* ----------------------------------------------------
   링크조이 주간업무보고 관리 시스템 프리미엄 CSS
   ---------------------------------------------------- */

:root,
[data-theme="dark"] {
  /* Chrome Dark & Vintage Black Theme Tokens */
  --bg-app: #18191c;
  --bg-dashboard: radial-gradient(circle at 50% 0%, #292a2e 0%, #18191c 82%);
  --bg-card: rgba(38, 39, 43, 0.78);
  --bg-card-hover: rgba(50, 51, 56, 0.92);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(138, 180, 248, 0.5);
  --text-main: #f1f3f4;
  --text-muted: #9aa0a6;
  
  /* Primary brand colors (Chrome Modern Blue) */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --accent: #10b981;
  
  /* Status Colors */
  --status-completed: #10b981; /* Emerald Green */
  --status-completed-bg: rgba(16, 185, 129, 0.15);
  --status-progress: #3b82f6; /* Blue */
  --status-progress-bg: rgba(59, 130, 246, 0.15);
  --status-delayed: #f59e0b; /* Warm Orange */
  --status-delayed-bg: rgba(245, 158, 11, 0.15);
  --status-scheduled: #9aa0a6; /* Chrome Grey */
  --status-scheduled-bg: rgba(154, 160, 166, 0.15);
  --status-cancelled: #ef4444; /* Soft Red */
  --status-cancelled-bg: rgba(239, 68, 68, 0.15);
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 16px -6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
  
  --glass-bg: rgba(32, 33, 36, 0.72);
  --glass-blur: blur(16px);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Light Theme Tokens */
[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-dashboard: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(79, 70, 229, 0.5);
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --primary: #4f46e5;
  --primary-hover: #3730a3;
  --primary-glow: rgba(79, 70, 229, 0.15);
  
  --status-completed: #059669;
  --status-completed-bg: rgba(5, 150, 105, 0.1);
  --status-progress: #2563eb;
  --status-progress-bg: rgba(37, 99, 235, 0.1);
  --status-delayed: #d97706;
  --status-delayed-bg: rgba(217, 119, 6, 0.1);
  --status-scheduled: #475569;
  --status-scheduled-bg: rgba(71, 85, 105, 0.1);
  --status-cancelled: #dc2626;
  --status-cancelled-bg: rgba(220, 38, 38, 0.1);

  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(12px);
}

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

body, .app-container, .summary-card, table, th, td, input, select, textarea, .modal-card, .password-card {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dashboard);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 50px;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ----------------------------------------------------
   Google OAuth 인증 로그인 화면 (Google OAuth Overlay)
   ---------------------------------------------------- */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 21, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

[data-theme="light"] .login-overlay {
  background: rgba(241, 245, 249, 0.85);
}

.login-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-glow-accent {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(138, 180, 248, 0.12) 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  pointer-events: none;
}

.login-card {
  position: relative;
  background: rgba(34, 35, 39, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  margin: 0 16px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="light"] .login-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.login-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-notice-box {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}

[data-theme="light"] .auth-notice-box {
  background: rgba(14, 165, 233, 0.08);
  color: #0284c7;
}

.auth-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
}

.g-signin-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

.auth-error-box {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.login-footer-text {
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* User Profile Badge in Header */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary);
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.user-email {
  font-size: 10px;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   App Layout & Header
   ---------------------------------------------------- */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  animation: contentFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.brand {
  display: grid;
  grid-template-columns: 28px auto;
  grid-template-rows: 23px 11px;
  column-gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brandMark {
  grid-row: 1 / 3;
  width: 28px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brandMark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brandText {
  font-family: var(--font-heading), 'Outfit', sans-serif;
  letter-spacing: 1.2px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.brand small {
  font-family: var(--font-heading), 'Outfit', sans-serif;
  letter-spacing: 3px;
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
}

/* ----------------------------------------------------
   Dashboard Summary Cards
   ---------------------------------------------------- */
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.summary-card.completed::before { background: var(--status-completed); }
.summary-card.progress::before { background: var(--status-progress); }
.summary-card.delayed::before { background: var(--status-delayed); }

.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-card-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.summary-card-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Custom Mini Progress Bar in Summary Card */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill.completed { background: var(--status-completed); }
.progress-bar-fill.progress { background: var(--status-progress); }

/* ----------------------------------------------------
   Navigator & Filters Bar
   ---------------------------------------------------- */
.controls-bar {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.navigator-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.week-selector-wrapper {
  position: relative;
}

.week-select {
  appearance: none;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 36px 10px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  outline: none;
  min-width: 220px;
}

.week-select:focus {
  border-color: var(--primary);
}

.week-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

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

.search-input-wrapper {
  position: relative;
}

.search-input {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 16px 10px 38px;
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: all 0.3s;
}

.search-input:focus {
  width: 280px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.dept-filter {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.dept-filter:focus {
  border-color: var(--primary);
}

/* ----------------------------------------------------
   Report Table Layout
   ---------------------------------------------------- */
.table-container {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 1100px;
}

th {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] tr:hover td {
  background: rgba(0, 0, 0, 0.01);
}

/* Column Widths & Wrap settings */
.col-dept { width: 7%; font-weight: 600; word-break: keep-all; }
.col-role { width: 9%; color: var(--text-muted); word-break: keep-all; font-size: 13.5px; }
.col-prev-work { width: 40.5%; }
.col-this-work { width: 40.5%; }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.badge-completed {
  color: var(--status-completed);
  background: var(--status-completed-bg);
}

.badge-progress {
  color: var(--status-progress);
  background: var(--status-progress-bg);
}

.badge-delayed {
  color: var(--status-delayed);
  background: var(--status-delayed-bg);
}

.badge-scheduled {
  color: var(--text-muted);
  background: var(--status-scheduled-bg);
}

.badge-cancelled {
  color: var(--status-cancelled);
  background: var(--status-cancelled-bg);
}

/* Task lists (Support nested arrays with inline details) */
.task-list {
  list-style: none;
  padding-left: 0;
}

.task-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}

.task-list-item::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 1px;
  color: var(--primary);
  font-weight: bold;
}

.task-list-item:last-child {
  margin-bottom: 0;
}

/* Vertical column layout for task metadata & actions */
.task-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}

.task-meta-row-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-meta-row-bottom {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 18px;
}

.task-item-delete-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}

.task-list-item:hover .task-item-delete-btn {
  opacity: 1;
}

@media (max-width: 768px) {
  .task-item-delete-btn {
    opacity: 1;
  }
}

.task-item-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.task-item-delete-btn svg {
  pointer-events: none;
}

.task-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.task-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
  font-weight: 500;
  transition: all 0.2s ease;
}

.task-link:hover {
  color: #3b82f6;
  opacity: 0.85;
}

.task-badge-inline {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.task-date-inline {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.task-prefix-tag {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  margin-right: 4px;
  display: inline-block;
  white-space: nowrap;
}

.task-prefix-tag.high {
  color: #ef4444;
}

.task-prefix-tag.medium {
  color: #f59e0b;
}

.task-prefix-tag.low {
  color: #10b981;
}

/* Dynamic list editor in modal */
.tasks-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 350px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.task-input-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .task-input-row {
  background: rgba(255, 255, 255, 0.6);
}

.task-input-row .form-control {
  padding: 8px 12px;
  font-size: 13.5px;
}

.task-delete-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 8px;
}

.task-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.row-actions-td {
  position: relative;
  vertical-align: middle !important;
  text-align: center;
  white-space: nowrap;
}

.row-actions-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.row-actions-btn + .row-actions-btn {
  margin-left: 8px;
}

.row-actions-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* Empty State */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.15);
}

/* Modal Body Scroll Lock & Overscroll Contain */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* ----------------------------------------------------
   Modals - Edit Report Modal & Week creation Modal
   ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 17, 19, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overscroll-behavior: contain;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

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

.modal-header h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

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

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

input.form-control, select.form-control, textarea.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

[data-theme="light"] input.form-control, 
[data-theme="light"] select.form-control, 
[data-theme="light"] textarea.form-control {
  background: rgba(255, 255, 255, 0.8);
}

input.form-control:focus, select.form-control:focus, textarea.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

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

/* Form switch and status pill selects */
.status-select-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.status-pill-option {
  position: relative;
  text-align: center;
}

.status-pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.status-pill-label {
  display: block;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
}

.status-pill-option input[type="radio"]:checked + .status-pill-label.completed {
  border-color: var(--status-completed);
  background: var(--status-completed-bg);
  color: var(--status-completed);
}

.status-pill-option input[type="radio"]:checked + .status-pill-label.progress {
  border-color: var(--status-progress);
  background: var(--status-progress-bg);
  color: var(--status-progress);
}

.status-pill-option input[type="radio"]:checked + .status-pill-label.delayed {
  border-color: var(--status-delayed);
  background: var(--status-delayed-bg);
  color: var(--status-delayed);
}

.status-pill-option input[type="radio"]:checked + .status-pill-label.scheduled {
  border-color: var(--text-muted);
  background: var(--status-scheduled-bg);
  color: var(--text-main);
}

.status-pill-option input[type="radio"]:checked + .status-pill-label.cancelled {
  border-color: var(--status-cancelled);
  background: var(--status-cancelled-bg);
  color: var(--status-cancelled);
}

/* ----------------------------------------------------
   Custom Elegant Toast Notifications
   ---------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(33, 34, 38, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.toast-success {
  border-left-color: var(--status-completed);
}

/* ----------------------------------------------------
   Animations
   ---------------------------------------------------- */
@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes contentFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Firebase Fallback warning banner */
.firebase-warning-banner {
  display: flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--status-delayed);
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
  animation: contentFadeIn 0.5s ease-out;
}

[data-theme="light"] .firebase-warning-banner {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

/* ----------------------------------------------------
   A4 Print styles using CSS @media print
   ---------------------------------------------------- */
@media print {
  body {
    background: white !important;
    color: black !important;
    padding: 0;
    margin: 0;
    font-size: 11pt;
  }
  
  .app-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Hide UI elements that shouldn't be printed */
  header,
  .controls-bar,
  .dashboard-summary,
  .row-actions-td,
  .col-actions-th,
  .btn,
  .toast,
  .modal-overlay,
  .password-overlay,
  .firebase-warning-banner {
    display: none !important;
  }

  /* Make table look like a clean grid suitable for documentation */
  .table-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  table {
    border: 1px solid #1e293b !important;
    border-collapse: collapse !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  th {
    background: #f1f5f9 !important;
    color: black !important;
    border: 1px solid #94a3b8 !important;
    padding: 8px 10px !important;
    font-size: 10pt !important;
  }

  td {
    border: 1px solid #cbd5e1 !important;
    padding: 8px 10px !important;
    color: black !important;
    font-size: 10pt !important;
    background: transparent !important;
  }

  /* Status badge print styles */
  .badge {
    background: transparent !important;
    border: 1px solid #64748b !important;
    color: black !important;
    padding: 2px 6px !important;
  }

  .badge-completed { border-color: #10b981 !important; color: #047857 !important; }
  .badge-progress { border-color: #3b82f6 !important; color: #1d4ed8 !important; }
  .badge-delayed { border-color: #f59e0b !important; color: #b45309 !important; }
  .badge-cancelled { border-color: #ef4444 !important; color: #b91c1c !important; }

  /* Bullet points for print */
  .task-list-item::before {
    color: black !important;
  }
}

/* ----------------------------------------------------
   Flatpickr Datepicker Custom Styles (Theme-aware)
   ---------------------------------------------------- */
.flatpickr-calendar {
  background: var(--bg-card) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-sans) !important;
  border-radius: 16px !important;
  color: var(--text-main) !important;
  margin-top: 4px;
}

.flatpickr-calendar::before, .flatpickr-calendar::after {
  display: none !important; /* 화살표 제거하여 깔끔한 플로팅 카드 형태 유지 */
}

/* 월/년도 헤더 스타일 */
.flatpickr-months {
  padding: 8px 0;
}
.flatpickr-months .flatpickr-month {
  color: var(--text-main) !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--text-main) !important;
  fill: var(--text-main) !important;
  padding: 10px;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--primary) !important;
  fill: var(--primary) !important;
}

/* 요일 스타일 */
span.flatpickr-weekday {
  color: var(--text-muted) !important;
  font-weight: 600 !important;
}

/* 날짜 스타일 */
.flatpickr-day {
  color: var(--text-main) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--border-color) !important;
  color: var(--text-main) !important;
}

/* 오늘 날짜 */
.flatpickr-day.today {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  font-weight: bold;
}
.flatpickr-day.today:hover {
  background: var(--primary-glow) !important;
  color: var(--text-main) !important;
}

/* 선택된 날짜 */
.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.prevMonthDay.selected,
.flatpickr-day.nextMonthDay.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  font-weight: bold;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* 인접 월 날짜 */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--text-muted) !important;
  opacity: 0.4;
}

/* 비활성화 날짜 */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: var(--text-muted) !important;
  opacity: 0.25;
}

/* 연도/월 드롭다운 */
.numInputWrapper span.arrowUp::after {
  border-bottom-color: var(--text-main) !important;
}
.numInputWrapper span.arrowDown::after {
  border-top-color: var(--text-main) !important;
}

/* 모바일 성능 최적화: backdrop-filter 비활성화 및 테이블 ➔ 카드화 레이아웃 대전환 */
@media (max-width: 768px) {
  .password-card, .modal-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-card) !important;
  }

  .task-item-delete-btn {
    opacity: 1 !important;
  }

  /* 대시보드 통계 마진 축소 */
  .dashboard-summary {
    gap: 12px;
    margin-bottom: 20px;
  }
  .summary-card {
    padding: 16px;
  }

  /* 상단 필터 및 컨트롤 바 세로형 레이아웃 정렬 */
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }
  
  .navigator-section, .filter-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  
  .week-selector-wrapper, .week-select, .dept-filter, .search-input-wrapper, .search-input {
    width: 100% !important;
    min-width: 0 !important;
  }
  
  .controls-bar button {
    width: 100% !important;
    justify-content: center;
  }

  /* 테이블을 가로 스크롤 대신 반응형 카드 형태로 구조적 대전환 */
  .table-container {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow-x: visible;
    margin-bottom: 16px;
  }
  
  table, thead, tbody, tr, td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }
  
  thead {
    display: none; /* 헤더 열 숨김 */
  }
  
  /* 개별 행(tr)을 하나의 카드화 */
  tr {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
  }
  
  tr:hover td {
    background: transparent;
  }
  
  td {
    padding: 6px 0;
    border-bottom: none;
  }
  
  /* 부서명 배지화 처리 */
  td.col-dept {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-block;
    width: auto !important;
    background: var(--status-completed-bg);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
  }
  
  [data-theme="light"] td.col-dept {
    background: rgba(99, 102, 241, 0.1);
  }
  
  /* 팀명 및 담당자 굵게 헤더화 */
  td.col-role {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 14px;
    display: block;
    width: auto !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
  }
  
  /* 전주/금주 리스트 내용 세로 나열 및 전용 헤더 라벨 주입 */
  td.col-prev-work, td.col-this-work {
    margin-bottom: 12px;
    display: block;
  }
  
  td.col-prev-work::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
  }
  
  td.col-this-work::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
  }
  
  /* 관리 액션 버튼을 카드 우측 상단에 배치 */
  td.row-actions-td {
    position: absolute;
    top: 14px;
    right: 16px;
    width: auto !important;
    padding: 0;
    display: flex;
    gap: 8px;
  }
  
  .row-actions-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
  }
  
  .row-actions-btn + .row-actions-btn {
    margin-left: 0;
  }
}

/* 초소형 스마트폰 (576px 이하) */
@media (max-width: 576px) {
  /* 상단 로고 및 액션버튼 2단 스택화 */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }
  
  /* 모달 카드 배치 여백 및 패딩 콤팩트화 */
  .modal-card {
    border-radius: 20px;
    max-height: 95vh;
  }
  
  .modal-header, .modal-body, .modal-footer {
    padding: 16px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  
  /* 모달 내부 개별 태스크 행 세로형 배치 전환 */
  .task-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }
  
  .task-text-input {
    width: 100% !important;
    height: 70px !important;
  }
  
  .task-date-input, .task-status-select {
    width: 100% !important;
  }
  
  .task-delete-btn {
    align-self: flex-end;
    margin-top: 0;
    padding: 4px;
  }
}

/* 저사양 및 동작 축소 사용자를 위한 애니메이션 방지 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .password-card, .modal-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
  }
}

/* ----------------------------------------------------
   11. 날짜 필터 스타일 (Date Filter Styling)
   ---------------------------------------------------- */
.date-filter-wrapper {
  position: relative;
  display: inline-block;
}

.clear-date-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
}

.clear-date-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

[data-theme="light"] .clear-date-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ----------------------------------------------------
   12. 드래그 앤 드롭 스타일 (Drag and Drop Styling)
   ---------------------------------------------------- */
.task-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.4;
  cursor: grab;
  padding: 2px 4px 2px 0;
  margin-right: 2px;
  transition: all 0.2s;
}

.task-list-item:hover .task-drag-handle {
  opacity: 0.9;
  color: var(--primary);
}

.task-drag-handle:active {
  cursor: grabbing;
}

.task-list-item[draggable="true"] {
  cursor: grab;
  user-select: none;
  -webkit-user-drag: element;
  transition: background 0.15s ease, border 0.15s ease;
  position: relative;
}

.task-list-item[draggable="true"]:hover {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

[data-theme="light"] .task-list-item[draggable="true"]:hover {
  background: rgba(0, 0, 0, 0.03);
}

.task-list-item[draggable="true"]:active {
  cursor: grabbing;
}

.task-list-item.dragging {
  opacity: 0.35;
  border: 1px dashed var(--border-color);
  background: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="light"] .task-list-item.dragging {
  background: rgba(0, 0, 0, 0.01) !important;
}

/* 드롭 가이드 라인 (Reorder 시 상단/하단 경계선) */
.task-list-item.drag-over-top,
.task-input-row.drag-over-top {
  border-top: 2px solid var(--primary) !important;
  border-radius: 2px 2px 0 0;
}

.task-list-item.drag-over-bottom,
.task-input-row.drag-over-bottom {
  border-bottom: 2px solid var(--primary) !important;
  border-radius: 0 0 2px 2px;
}

/* 드롭 대상 영역 하이라이트 */
.col-this-work.drag-hover,
.col-prev-work.drag-hover {
  background: rgba(99, 102, 241, 0.08) !important;
  outline: 2px dashed var(--primary) !important;
  outline-offset: -2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .col-this-work.drag-hover,
[data-theme="light"] .col-prev-work.drag-hover {
  background: rgba(99, 102, 241, 0.05) !important;
}

/* 모달 내 업무 입력 행 드래그 핸들 및 스타일 */
.task-input-row[draggable="true"] {
  cursor: default;
  transition: border 0.15s ease, background 0.15s ease;
}

.task-row-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: grab;
  padding: 6px 4px;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
  align-self: center;
}

.task-input-row:hover .task-row-drag-handle {
  opacity: 1;
  color: var(--primary);
}

.task-row-drag-handle:active {
  cursor: grabbing;
}

.task-input-row.dragging {
  opacity: 0.4;
  border: 1px dashed var(--primary) !important;
  background: rgba(99, 102, 241, 0.05) !important;
}

/* ----------------------------------------------------
   13. 백로그 관리 슬라이드 패널 (Backlog Drawer Styling)
   ---------------------------------------------------- */
.backlog-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-count {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1;
}

/* 슬라이드 오버레이 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 슬라이드 패널 */
.backlog-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 450px;
  max-width: 90vw;
  background: var(--bg-app);
  border-left: 1px solid var(--border-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
}

.backlog-drawer.active {
  transform: translateX(0);
}

/* 헤더 */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.drawer-title h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.drawer-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* 툴바 & 필터 */
.drawer-toolbar {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-filter-row {
  display: flex;
  gap: 8px;
}

.drawer-info-banner {
  margin: 12px 24px 0 24px;
  padding: 12px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
}

.drawer-info-banner code {
  background: rgba(99, 102, 241, 0.2);
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--primary);
}

/* 스크롤 바디 */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 백로그 카드 */
.backlog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
  cursor: grab;
  user-select: none;
}

.backlog-card:hover {
  border-color: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.backlog-card.dragging {
  opacity: 0.4;
  border: 2px dashed var(--primary);
}

.backlog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.backlog-owner {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.backlog-owner-dept {
  color: var(--primary);
}

/* 우선순위 뱃지 */
.priority-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: -0.01em;
}

.priority-badge.high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.priority-badge.low {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.backlog-card-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
  white-space: pre-wrap;
  margin-bottom: 14px;
}

.backlog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.backlog-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.backlog-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backlog-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.backlog-action-btn.delete:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.btn-assign {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

/* ----------------------------------------------------
   14. 하단 푸터 영역 스타일 (App Footer Styling)
   ---------------------------------------------------- */
.app-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy-summary {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.back-to-top-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-to-top-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.footer-company-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-company-info strong {
  color: var(--text-main);
}

.footer-company-info a,
.footer-copyright a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-company-info a:hover,
.footer-copyright a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-divider {
  color: var(--border-color);
  opacity: 0.6;
}

.footer-copyright {
  letter-spacing: 0.3px;
}

/* 인쇄 시 푸터 가리기 */
@media print {
  .app-footer {
    display: none !important;
  }
}

