/* =========================================
   Ladies Studio — Daily Reporting System
   Design System & Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ----- Design Tokens ----- */
:root {
  /* Backgrounds */
  --bg-primary: #08081a;
  --bg-secondary: #0f0f2a;
  --bg-tertiary: #161640;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-input-focus: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);

  /* Text */
  --text-primary: #eeeef5;
  --text-secondary: #9999bb;
  --text-muted: #5e5e80;
  --text-inverse: #08081a;

  /* Brand — Rose */
  --rose-50: #fdf2f8;
  --rose-100: #fce7f3;
  --rose-200: #fbcfe8;
  --rose-300: #f9a8d4;
  --rose-400: #f472b6;
  --rose-500: #ec4899;
  --rose-600: #db2777;
  --rose-700: #be185d;
  --accent: var(--rose-400);
  --accent-dim: rgba(244, 114, 182, 0.12);
  --accent-glow: rgba(244, 114, 182, 0.25);

  /* Brand — Gold */
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;

  /* Semantic */
  --success: #34d399;
  --success-dim: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-dim: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-dim: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-dim: rgba(96, 165, 250, 0.12);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.15s;
  --t-normal: 0.3s;
  --t-slow: 0.5s;

  /* Fonts */
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-heading: 'Outfit', var(--ff-body);

  /* Sizing */
  --header-height: 72px;
  --sidebar-width: 260px;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 25% 25%, rgba(244, 114, 182, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 75% 75%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul, ol { list-style: none; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; font-weight: 600; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* ----- Layout ----- */
.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* ----- Header ----- */
.app-header {
  height: var(--header-height);
  background: rgba(8, 8, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
}

.header-title {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose-300), var(--rose-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.header-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----- Navigation Tabs ----- */
.nav-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 32px;
  width: fit-content;
}

.nav-tab {
  padding: 10px 24px;
  border-radius: var(--r-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-normal) var(--ease-out);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 600;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* ----- Cards ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--t-normal) var(--ease-out);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

/* ----- Stat Cards ----- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 0 0 80px;
  opacity: 0.08;
}

.stat-card.rose::after { background: var(--rose-400); }
.stat-card.success::after { background: var(--success); }
.stat-card.warning::after { background: var(--warning); }
.stat-card.info::after { background: var(--info); }

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card.rose .stat-value { color: var(--rose-400); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.info .stat-value { color: var(--info); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ----- Employee Cards ----- */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.employee-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--t-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.employee-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
}

.employee-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.employee-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  color: white;
}

.employee-avatar.rose { background: linear-gradient(135deg, var(--rose-500), var(--rose-700)); }
.employee-avatar.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.employee-avatar.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.employee-avatar.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.employee-avatar.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.employee-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.employee-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.employee-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-submitted {
  background: var(--success-dim);
  color: var(--success);
}

.badge-pending {
  background: var(--warning-dim);
  color: var(--warning);
}

.badge-missed {
  background: var(--danger-dim);
  color: var(--danger);
}

/* Progress bar inside employee card */
.progress-section {
  margin: 16px 0;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--rose-500), var(--rose-400));
  transition: width var(--t-slow) var(--ease-out);
}

.progress-bar-fill.success { background: linear-gradient(90deg, #059669, var(--success)); }
.progress-bar-fill.warning { background: linear-gradient(90deg, #d97706, var(--warning)); }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ----- Employee card actions ----- */
.employee-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-normal) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: white;
  box-shadow: 0 2px 12px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--r-md);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  transition: all var(--t-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239999bb' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select option {
  color: #000;
  background: #fff;
}


.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ----- Modal ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-normal) var(--ease-out);
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--t-normal) var(--ease-spring);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--t-fast);
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 0 24px 24px;
}

/* ----- Section Headers ----- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ----- Table ----- */
.table-container {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
}

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

.table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
}

.table td {
  padding: 14px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

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

/* ----- Reports ----- */
.report-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

/* Calendar heatmap */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px;
  font-weight: 600;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
  cursor: default;
  transition: all var(--t-fast);
}

.calendar-day.empty { background: transparent; }
.calendar-day.future { background: rgba(255,255,255,0.02); color: var(--text-muted); }
.calendar-day.complete { background: var(--success-dim); color: var(--success); }
.calendar-day.partial { background: var(--warning-dim); color: var(--warning); }
.calendar-day.missed { background: var(--danger-dim); color: var(--danger); }
.calendar-day.no-report { background: rgba(255,255,255,0.03); color: var(--text-muted); }

.calendar-day:not(.empty):not(.future):hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-sm);
}

.calendar-day .day-num {
  font-size: 0.85rem;
  font-weight: 600;
}

.calendar-day .day-pct {
  font-size: 0.55rem;
  opacity: 0.8;
}

/* ----- Checklist Page ----- */
.checklist-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

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

.checklist-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-glow);
}

.checklist-brand {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-300), var(--rose-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.checklist-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.checklist-employee-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 12px;
  color: var(--text-secondary);
}

.checklist-employee-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Checklist items */
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.checklist-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  transition: all var(--t-normal) var(--ease-out);
}

.checklist-item:hover {
  border-color: var(--glass-border-hover);
}

.checklist-item.checked {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.04);
}

.checklist-item-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checklist-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--glass-border-hover);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--t-fast);
  position: relative;
}

.checklist-checkbox:checked {
  background: var(--success);
  border-color: var(--success);
}

.checklist-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.checklist-text {
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.checklist-item.checked .checklist-text {
  color: var(--text-secondary);
}

.checklist-note {
  margin-top: 10px;
  padding-left: 34px;
}

.checklist-note input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  outline: none;
  transition: all var(--t-fast);
}

.checklist-note input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.checklist-note input::placeholder {
  color: var(--text-muted);
}

.checklist-submit-section {
  text-align: center;
}

.checklist-submit-section .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* Already submitted state */
.submitted-overlay {
  text-align: center;
  padding: 40px 20px;
}

.submitted-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounceIn 0.6s var(--ease-spring);
}

.submitted-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--success);
}

.submitted-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ----- Toast Notification ----- */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  animation: slideInRight 0.4s var(--ease-spring);
  font-size: 0.9rem;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--info); }

/* ----- Offline Banner ----- */
.offline-banner {
  background: var(--warning-dim);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--r-md);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--warning);
}

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

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state-hint {
  font-size: 0.85rem;
}

/* ----- Tabs Content ----- */
.tab-content {
  display: none;
  animation: fadeIn 0.3s var(--ease-out);
}

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

/* ----- View (for reports) ----- */
.view-section { display: none; }
.view-section.active { display: block; }

/* ----- Responsibility Tags in Management ----- */
.responsibility-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-dim);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  color: var(--accent);
  margin: 3px;
}

/* ----- Task breakdown in reports ----- */
.task-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.task-name {
  flex: 1;
  font-size: 0.9rem;
}

.task-pct {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

.task-bar-bg {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-full);
  overflow: hidden;
  flex-shrink: 0;
}

.task-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width var(--t-slow) var(--ease-out);
}

/* ----- Loading Spinner ----- */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
}

.loading-screen .spinner {
  width: 36px;
  height: 36px;
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----- Confirm Dialog ----- */
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ----- Animations ----- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in { animation: fadeIn 0.4s var(--ease-out) both; }
.animate-slide-up { animation: slideInUp 0.5s var(--ease-out) both; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* ----- Table Styles ----- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}

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


/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .main-content { padding: 16px 16px 60px; }
  .header-date { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .employee-grid { grid-template-columns: 1fr; }
  .nav-tabs { width: 100%; }
  .nav-tab { flex: 1; text-align: center; padding: 10px 12px; font-size: 0.8rem; }
  .report-controls { flex-direction: column; align-items: stretch; }
  .modal { margin: 12px; max-height: 90vh; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .task-bar-bg { width: 80px; }
  h1 { font-size: 1.5rem; }
  .stat-value { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .employee-actions { flex-direction: column; }
  .employee-actions .btn { width: 100%; justify-content: center; }
}

/* ----- Print ----- */
@media print {
  body { background: white; color: #111; }
  body::before { display: none; }
  .app-header, .nav-tabs, .btn, .modal-overlay, .toast-container,
  .offline-banner, .no-print { display: none !important; }
  .card, .stat-card, .chart-container, .employee-card {
    background: white; border: 1px solid #ddd; box-shadow: none;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .tab-content { display: block !important; }
  .stat-value { color: #333 !important; }
}
