/* =====================================================
   PAGE-SPECIFIC STYLES – Daily Task Track
   ===================================================== */

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.login-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -20%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -20%; right: -10%; animation-delay: 3s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 1.5s; }
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.login-logo h1 { font-size: 1.4rem; margin-bottom: 4px; }
.login-logo p { color: var(--text-secondary); font-size: 0.875rem; }

.login-form .form-control {
  background: var(--bg-dark);
  border-color: var(--border);
  padding: 12px 16px;
  font-size: 0.9rem;
}

.login-btn {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}
.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: var(--transition);
}
.login-btn:hover::before { opacity: 1; }
.login-btn span { position: relative; z-index: 1; }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.4); }

.login-demo {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.login-demo h4 { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.demo-accounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.demo-account-btn {
  padding: 6px 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.demo-account-btn:hover { border-color: var(--primary); color: var(--primary); }
.demo-account-btn .demo-role { font-weight: 600; color: var(--text-primary); margin-bottom: 1px; }

/* =====================================================
   DASHBOARD PAGE
   ===================================================== */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent);
  border-radius: 50%;
}
.dashboard-hero .greeting { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.dashboard-hero .date-info { color: var(--text-secondary); font-size: 0.875rem; }
.dashboard-hero .hero-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Today's task list (dashboard) */
.today-task-list { display: flex; flex-direction: column; gap: 8px; }
.today-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}
.today-task-item:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.task-checkbox {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.task-checkbox.done {
  background: var(--success);
  border-color: var(--success);
  color: white;
  font-size: 0.7rem;
}
.task-checkbox.in_progress {
  background: rgba(245,158,11,0.2);
  border-color: var(--warning);
}
.today-task-item .task-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}
.today-task-item .task-name.done-text { text-decoration: line-through; color: var(--text-muted); }

/* =====================================================
   TASK PAGE
   ===================================================== */
.kanban-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .kanban-board { grid-template-columns: 1fr; }
  .kanban-cards { min-height: 100px; }
}

/* =====================================================
   REPORT PAGE
   ===================================================== */
.report-form-card {
  max-width: 860px;
  margin: 0 auto;
}
.report-section {
  margin-bottom: 20px;
}
.report-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-hours-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.work-hours-input input[type=range] {
  flex: 1;
  accent-color: var(--primary);
}

/* =====================================================
   ADMIN DASHBOARD
   ===================================================== */
.team-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }

.team-card .team-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.team-card .team-meta { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 16px; }
.team-card .team-stat { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.team-card .team-stat-label { font-size: 0.8rem; color: var(--text-secondary); }
.team-card .team-stat-value { font-weight: 700; font-size: 0.9rem; }

/* Submission rate chart */
.submission-ring {
  width: 64px; height: 64px;
  position: relative;
}
.submission-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.submission-ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--bg-input); }
.ring-fill { stroke: var(--success); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* =====================================================
   IMPORT PAGE
   ===================================================== */
.import-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.import-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: var(--transition);
}
.step-num.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 0 0 4px rgba(99,102,241,0.2); }
.step-num.done { background: var(--success); border-color: var(--success); color: white; }
.step-label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.step-label.active { color: var(--primary); }
.step-connector { flex: 1; height: 2px; background: var(--border); margin: 0 12px; }
.step-connector.done { background: var(--success); }

.preview-table-wrapper { max-height: 400px; overflow: auto; }

.import-row-create { background: rgba(16,185,129,0.05); }
.import-row-update { background: rgba(245,158,11,0.05); }
.import-row-error  { background: rgba(239,68,68,0.05); }

/* =====================================================
   REPORT VIEW (Admin)
   ===================================================== */
.report-detail {
  max-width: 760px;
  margin: 0 auto;
}

.report-section-block {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.report-section-block h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.report-section-block p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* =====================================================
   USER MANAGEMENT
   ===================================================== */
.user-row-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  flex-shrink: 0;
}
