/* ==========================================================================
   Pace Time-Tracker Stylesheet
   Theme: Glassmorphic Cyber-Noir (Deep Indigo / Space Gray & Violet Accents)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(18, 18, 26, 0.7);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent: #6366f1; /* Indigo */
  --accent-rgb: 99, 102, 241;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  --success: #10b981; /* Emerald */
  --success-rgb: 16, 185, 129;
  --success-glow: rgba(16, 185, 129, 0.15);
  
  --danger: #ef4444; /* Rose */
  --danger-hover: #dc2626;
  --danger-glow: rgba(239, 68, 68, 0.2);
  
  --warning: #f59e0b; /* Amber */
  --info: #0ea5e9; /* Sky */

  /* Typography */
  --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout and Sizing */
  --sidebar-width: 260px;
  --max-width: 1400px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light Mode Variables Override --- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent: #4f46e5;
  --accent-rgb: 79, 70, 229;
  --accent-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.08);
  
  --success: #059669;
  --success-rgb: 5, 150, 105;
  --success-glow: rgba(5, 150, 105, 0.08);
  
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-glow: rgba(220, 38, 38, 0.08);
  
  --warning: #d97706;
  --info: #0284c7;
}

/* Ensure scrollbars adapt to light theme */
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.25);
}
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p.subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* --- Layout Architecture --- */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  margin-bottom: 3rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
  width: 100%;
}

.nav-item i {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

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

.nav-item:hover i {
  transform: translateX(2px);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  padding-left: calc(1rem - 3px);
}

.nav-item.active:hover {
  background: rgba(99, 102, 241, 0.15);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  width: 100%;
}

.running-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.running-status-dot.active {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-glow 2s infinite;
}

/* Main Content Layout */
.main-content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  padding: 2.5rem 3rem;
  max-width: calc(var(--max-width) + var(--sidebar-width));
  width: 100%;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}


.page-title-section h1 {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Premium Cards (Glassmorphism) --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* --- Active Timer Banner Component --- */
.active-timer-section {
  margin-bottom: 2.5rem;
  animation: slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-timer-card {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 18, 26, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

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

.timer-info {
  flex-grow: 1;
}

.badge-running {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.glowing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse-glow 1.5s infinite;
}

.timer-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.timer-counter {
  font-family: var(--font-header);
  font-size: 3rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  font-variant-numeric: tabular-nums;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  width: 24px;
  height: 24px;
}

.purple-glow {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.blue-glow {
  background: rgba(14, 165, 233, 0.1);
  color: var(--info);
  border: 1px solid rgba(14, 165, 233, 0.15);
}
.green-glow {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.yellow-glow {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.125rem;
  font-family: var(--font-header);
}

/* --- Dashboard Split Layout --- */
.dashboard-split-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.projects-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* Quick project start card */
.quick-project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-fast);
}

.quick-project-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.2);
}

.quick-project-card.running {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.02);
}

.project-meta-details {
  display: flex;
  flex-direction: column;
}

.project-client-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-hourly-rate {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.project-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.project-tracked-time {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Activity Feed (Today) --- */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  transition: var(--transition-fast);
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.feed-details {
  display: flex;
  flex-direction: column;
}

.feed-proj-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.feed-client-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-time-summary {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.feed-duration {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
}

.feed-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Button Styling --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.btn-accent {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

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

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

.btn-danger {
  background-color: var(--danger);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

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

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
}

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

.btn-icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

.btn-circle {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}

.btn i {
  width: 16px;
  height: 16px;
}

/* --- Forms & Inputs --- */
.form-card {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

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

select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Horizontal & Special Forms layout */
.horizontal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
}

.flex-1 {
  flex: 1;
}

.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* --- Projects Tab Management Directory Layout --- */
.projects-management-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.projects-forms-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.client-directory-group {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.client-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.client-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-group-title h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.client-project-count {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
  font-weight: 500;
}

.client-projects-list {
  padding: 0.5rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.directory-project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.directory-project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.proj-info-block {
  display: flex;
  flex-direction: column;
}

.proj-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.proj-rate {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.proj-actions {
  display: flex;
  gap: 0.5rem;
}

/* --- Logs Tab Layout --- */
.logs-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.filters-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-grow: 1;
  max-width: 900px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  min-width: 200px;
}

.search-input-wrapper input {
  padding-left: 2.75rem;
}

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

.filters-group select {
  width: 160px;
}

.custom-date-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-date-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.custom-date-container .date-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  outline: none;
  width: 120px;
}

.custom-date-container .date-separator {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
}

.action-buttons-group {
  display: flex;
  gap: 0.75rem;
}

/* Table Style */
.table-card {
  padding: 0;
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.logs-table th {
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1.25rem 1.75rem;
}

.logs-table td {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.logs-table tbody tr {
  transition: var(--transition-fast);
}

.logs-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

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

.log-date {
  font-weight: 500;
}

.log-client {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.1875rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.log-project {
  font-weight: 600;
}

.log-duration {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.log-earnings {
  font-weight: 600;
  color: var(--success);
}

/* Empty State Styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
  width: 100%;
}

.empty-state i {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  max-width: 250px;
}

.empty-state.small {
  padding: 1.5rem;
}
.empty-state.small p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

/* --- Panel Visibility System --- */
.tab-panel {
  display: none;
  animation: fade-in var(--transition-normal);
}

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

/* --- Keyframe Animations --- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--success-rgb), 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--success-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--success-rgb), 0);
  }
}

.pulse-icon {
  animation: heart-beat 2.5s infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* --- Responsive Adaptations (Mobile First focus on layouts) --- */
@media (max-width: 1024px) {
  .dashboard-split-layout {
    grid-template-columns: 1fr;
  }
  
  .projects-forms-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.25rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-header {
    margin-bottom: 1.75rem;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
  }

  .nav-item {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    text-align: center;
  }
  
  .nav-item.active {
    border-left: none;
    border-bottom: 3px solid var(--accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-left: 0.5rem;
    padding-bottom: calc(0.75rem - 3px);
  }

  .nav-item:hover i {
    transform: none;
  }

  .sidebar-footer {
    display: none; /* Hide status text on mobile sidebar to save vertical space */
  }

  .custom-date-container {
    width: 100%;
    justify-content: space-between;
  }
  
  .custom-date-container .date-input {
    width: 45%;
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem 1.25rem;
  }

  .top-bar {
    margin-bottom: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  

  .user-profile-dropdown {
    top: 0.875rem;
    right: 1.5rem;
  }

  .active-timer-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .active-timer-card::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }

  .timer-counter {
    font-size: 2.25rem;
  }

  .logs-header-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-group {
    flex-direction: column;
    max-width: 100%;
  }

  .filters-group select {
    width: 100%;
  }

  .action-buttons-group {
    justify-content: space-between;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Inline Edit Styles --- */
.edit-inline-input {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 0.375rem 0.75rem !important;
  font-family: var(--font-body);
  outline: none;
  width: 100%;
}
.edit-inline-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--border-focus) !important;
}

/* --- User Profile Dropdown Styles --- */
.user-profile-dropdown {
  position: absolute;
  top: 2.5rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
}

.profile-trigger {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  outline: none;
  transition: transform var(--transition-fast);
}

.profile-trigger:hover {
  transform: scale(1.05);
}

.profile-trigger .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
  object-fit: cover;
  background-color: var(--bg-primary);
  flex-shrink: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.profile-trigger:hover .user-avatar {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

/* Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.75rem;
  width: 240px;
  padding: 1.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform-origin: top right;
  animation: dropdown-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.profile-dropdown-menu.hidden {
  display: none !important;
}

/* User Info inside dropdown */
.user-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  overflow: hidden;
  text-align: left;
}

.user-dropdown-info .user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-info .user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.25rem 0;
}

/* Log Out Dropdown Button */
.btn-logout-dropdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-fast);
  text-align: left;
}

.btn-logout-dropdown i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.btn-logout-dropdown:hover {
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.btn-logout-dropdown:hover i {
  color: var(--danger);
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 45%), 
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 40%),
              var(--bg-primary);
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 3rem 2.5rem;
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: fade-in-up 0.5s ease-out;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.login-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.3));
}

.login-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.login-header p.subtitle {
  font-size: 0.95rem;
  line-height: 1.4;
}

.login-body {
  margin-bottom: 2rem;
}

.login-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.google-signin-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.google-signin-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15) !important;
  transform: translateY(-1px);
}

.google-icon {
  flex-shrink: 0;
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Light Mode Gradient Text Overrides --- */
[data-theme="light"] .logo-text {
  background: linear-gradient(to right, #0f172a, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .login-header h1 {
  background: linear-gradient(to right, #0f172a, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .page-title-section h1 {
  background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .active-timer-card {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* --- Status Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-inactive {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.badge-completed {
  background: rgba(14, 165, 233, 0.1);
  color: var(--info);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-archived {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   Pace Landing Page Styles
   ========================================================================== */

/* Main Landing Container */
.landing-container {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Sticky Header styling */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background var(--transition-normal), border var(--transition-normal), height var(--transition-normal), box-shadow var(--transition-normal);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.landing-header.scrolled {
  height: 70px;
  background: rgba(var(--bg-primary) === '#0a0a0f' ? '10, 10, 15' : '248, 250, 252', 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Override scrolled background colors utilizing theme attribute */
[data-theme="dark"] .landing-header.scrolled {
  background: rgba(10, 10, 15, 0.85);
}
[data-theme="light"] .landing-header.scrolled {
  background: rgba(248, 250, 252, 0.85);
}

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

.landing-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.landing-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.landing-nav-link:hover {
  color: var(--accent);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Section */
.landing-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 180px 2rem 100px 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  min-height: 90vh;
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent) 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-header);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.hero-stat-divider {
  width: 1px;
  height: 30px;
  background-color: var(--border-color);
}

/* Landing Preview & Mock Dashboard */
.landing-hero-preview {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mock-browser-frame {
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.mock-browser-frame:hover {
  transform: translateY(-5px);
}

.browser-header {
  height: 40px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1.5rem;
}

.browser-dots {
  display: flex;
  gap: 0.375rem;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.browser-address {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  max-width: 260px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.browser-body {
  padding: 1.5rem;
  background: rgba(18, 18, 26, 0.3);
}

/* Mock dashboard details */
.mock-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-header-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.mock-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mock-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
  animation: pulse-glow 1.5s infinite;
}

.mock-timer-card {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.mock-timer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--success);
}

.mock-timer-details {
  display: flex;
  flex-direction: column;
}

.mock-project-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mock-client-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.mock-timer-counter {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 700;
  color: var(--success);
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
  font-variant-numeric: tabular-nums;
}

.mock-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mock-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
}

.mock-box-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.mock-box-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.hero-glow-effect {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* Features Grid Section */
.landing-features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 2rem;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.25rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.25);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-wrapper i {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Pricing Section */
.landing-pricing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 2rem;
  width: 100%;
}

.pricing-card-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pricing-card {
  width: 100%;
  max-width: 460px;
  padding: 3rem 2.5rem;
  border-color: rgba(99, 102, 241, 0.25);
  position: relative;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(18, 18, 26, 0.8) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-header {
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.tier-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.price-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.price-symbol {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-amount {
  font-family: var(--font-header);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-features-list li i {
  color: var(--success);
  width: 18px;
  height: 18px;
}

.btn-pricing-cta {
  height: 52px;
}

/* FAQ Accordion Section */
.landing-faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 2rem 120px 2rem;
  width: 100%;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.faq-question span {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item.active {
  border-color: rgba(99, 102, 241, 0.2);
}

/* Footer Section */
.landing-footer {
  border-top: 1px solid var(--border-color);
  padding: 5rem 2rem 3rem 2rem;
  background-color: var(--bg-secondary);
  width: 100%;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Auth Modal overlay */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.login-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.btn-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.btn-modal-close i {
  width: 14px;
  height: 14px;
}

/* Responsive Styling overrides */
@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 140px;
    text-align: center;
  }
  .landing-hero-content {
    align-items: center;
  }
  .hero-subtitle {
    margin: 0 auto 2.5rem auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 0 1.5rem;
  }
  .landing-nav {
    display: none; /* Hide nav items on mobile header for brevity */
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }
}

