/**
 * 3D ArtDesk - CSS Variables
 * Brand palette și constante globale
 */

:root {
  /* Brand Colors */
  --brand: #0e5a64;
  --accent: #f68c43;
  --cream: #fbf9f4;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  
  /* Background & Text */
  --bg: var(--cream);
  --text: #1f2a2e;
  --muted: #5b6b70;
  --border: #e8e6df;
  
  /* Semantic Colors */
  --ok: #2e9e6f;
  --warn: #f1b84a;
  --bad: #e25555;
  --info: #2aa6b8;
  
  /* Shadows */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, sans-serif;
  --font-size-sm: 12px;
  --font-size: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  
  /* Z-index layers */
  --z-dropdown: 50;
  --z-sticky: 60;
  --z-header: 80;
  --z-overlay: 85;
  --z-sidebar: 90;
  --z-modal: 9999;
  --z-toast: 10000;
  
  /* Transitions */
  --transition-fast: 0.12s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}
/**
 * 3D ArtDesk - Base Styles
 * Reset, typography, forms, buttons
 */

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Body === */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-lg);
  line-height: 1.5;
  background: var(--grad);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

h1.title {
  font-size: var(--font-size-3xl);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-lg);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  background: rgba(14, 90, 100, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

pre {
  background: #f8f9fb;
  padding: var(--space-md);
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* === Forms === */
.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: var(--font-size-lg);
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 90, 100, 0.15);
}

input:disabled, select:disabled, textarea:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

input[type="color"] {
  padding: 4px;
  height: 42px;
  cursor: pointer;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

select[multiple] {
  padding: 8px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: var(--font-size);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--brand);
}

.btn-danger {
  background: var(--bad);
  color: #fff;
}
.btn-danger:hover {
  background: #c94545;
}

.btn-sm {
  padding: 8px 10px;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 14px 24px;
  font-size: var(--font-size-lg);
}

/* Link-like button */
.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* === Utilities === */
.empty {
  padding: 44px 16px;
  text-align: center;
  color: var(--muted);
}

.row {
  display: flex;
  gap: var(--space-md);
}
.row > .col {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }
}

/* === Avatar === */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: var(--font-size);
  flex-shrink: 0;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: var(--font-size-lg);
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: var(--font-size-sm);
}
/**
 * 3D ArtDesk - Layout Styles
 * Header, sidebar, main content grid
 */

/* === Main Layout === */
.layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 14px;
}

/* === Brand === */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.brand-logo {
  height: clamp(26px, 6.5vw, 34px);
  width: auto;
}

.brand-logo-xl {
  height: 56px;
  width: auto;
  margin-bottom: 6px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
  font-size: clamp(16px, 4.6vw, 22px);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === User Chip === */
.user-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.user-chip #userName {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.logout-btn {
  justify-self: end;
}

/* === Sidebar === */
.sidebar {
  width: 250px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: var(--space-lg);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 6px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition);
}

.menu-item:hover,
.menu-item.active {
  background: rgba(14, 90, 100, 0.08);
}

.menu-item.active {
  font-weight: 700;
  color: var(--brand);
}

.menu-sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.menu-item.logout {
  display: none;
  color: var(--bad);
  font-weight: 700;
}
.menu-item.logout:hover {
  background: rgba(226, 85, 85, 0.08);
}

/* Sidebar Overlay (mobile) */
#sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#sidebar-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* === Main Content === */
.content {
  flex: 1;
  padding: var(--space-xl);
  min-width: 0;
}

.page {
  display: none;
}
.page.active {
  display: block;
}

/* === Grid System === */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* === Login Layout === */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

#loginPage.login-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-xl);
  overflow: auto;
  background: transparent;
}

#loginPage .card.login {
  width: min(520px, 100%);
  max-width: 520px;
  margin: 0;
}

#loginPage .login-brand {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.login {
  max-width: 420px;
  width: 100%;
  padding: 32px;
  text-align: center;
}

.login-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

/* === Tasks Page Layout (with rail) === */
#page-tasks .tasks-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-lg);
  align-items: start;
}

#page-tasks .tasks-main {
  min-width: 0;
}

#page-tasks .tasks-rail {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

#page-tasks .rail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

#page-tasks .project-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  margin-bottom: var(--space-sm);
  transition: outline var(--transition);
}

#page-tasks .project-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

#page-tasks .project-pill .name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page-tasks .project-pill.active {
  outline: 2px solid var(--brand);
}

/* === Filters === */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.filters input,
.filters select {
  width: auto;
  min-width: 140px;
}

.filters input[type="text"],
.filters input[type="search"] {
  flex: 1 1 240px;
}
/**
 * 3D ArtDesk - Component Styles
 * Cards, badges, modals, tables, stats
 */

/* === Project Cards Grid === */
#projectsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  padding: 8px 0;
}

/* === Project Card === */
.project-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
}

/* Card Header */
.project-card-header {
  padding: 20px 24px;
  color: #fff;
  position: relative;
}

.project-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,0.1);
}

.project-card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-card-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  word-break: break-word;
}

.priority-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(4px);
}

.priority-low { background: rgba(46, 204, 113, 0.3); }
.priority-medium { background: rgba(241, 196, 15, 0.35); }
.priority-high { background: rgba(231, 76, 60, 0.35); }
.priority-critical { background: rgba(142, 68, 173, 0.4); }

/* Card Body */
.project-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.project-desc {
  color: #5f6368;
  font-size: 14px;
  line-height: 1.6;
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

.project-desc:not(:empty)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.text-muted {
  color: #9aa0a6;
  font-style: italic;
}

/* Project Meta */
.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5f6368;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.project-meta.deadline {
  background: #fff3e0;
  color: #e65100;
}

.meta-icon {
  font-size: 14px;
}

.project-path {
  font-size: 12px;
  color: #1a73e8;
  background: transparent;
  padding: 0;
  word-break: break-all;
}

/* Tasks Section */
.project-tasks-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  max-height: 200px;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}

.project-tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f1f3f4;
  border-bottom: 1px solid #e8eaed;
}

.tasks-label {
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
}

.btn-add-task {
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
  background: #e8f0fe;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-task:hover {
  background: #d2e3fc;
  color: #1557b0;
}

.project-tasks {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.loading-tasks {
  text-align: center;
  padding: 20px;
  color: #9aa0a6;
  font-size: 13px;
}

/* Task Items in Card */
.pt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.pt-item:hover {
  background: #e8f0fe;
}

.pt-item:last-child {
  margin-bottom: 0;
}

.pt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pt-dot.low { background: #34a853; }
.pt-dot.medium { background: #fbbc04; }
.pt-dot.high { background: #ea4335; }
.pt-dot.critical { background: #9334e6; }

.pt-title {
  flex: 1;
  font-size: 13px;
  color: #3c4043;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-title a {
  color: inherit;
  text-decoration: none;
}

.pt-title a:hover {
  color: #1a73e8;
}

.pt-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pt-deadline {
  font-size: 11px;
  color: #9aa0a6;
  white-space: nowrap;
}

.pt-deadline.overdue {
  color: #d93025;
  font-weight: 600;
}

/* More Tasks Button */
.pv-more {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
  background: transparent;
  border: none;
  cursor: pointer;
}

.pv-more:hover {
  text-decoration: underline;
}

/* Card Footer */
.project-card-footer {
  padding: 16px 24px;
  background: #fafafa;
  border-top: 1px solid #f1f3f4;
}

.project-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #3c4043;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action:hover {
  background: #f1f3f4;
  border-color: #c6c9cc;
}

.btn-action-danger {
  color: #d93025;
}

.btn-action-danger:hover {
  background: #fce8e6;
  border-color: #f5c6cb;
}

.btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-icon {
  font-size: 14px;
}

.action-text {
  display: inline;
}

@media (max-width: 480px) {
  .action-text {
    display: none;
  }
  .btn-action {
    padding: 8px 10px;
  }
}
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pt-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.pt-title {
  font-weight: 600;
  color: var(--text);
  font-size: var(--font-size);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.pt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.pt-dot.low { background: var(--ok); }
.pt-dot.medium { background: var(--warn); }
.pt-dot.high, .pt-dot.critical { background: var(--bad); }

/* Project Footer */
.project-footer {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.project-more {
  margin-right: auto;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 8px 12px;
  border: 1px solid transparent;
  display: none;
}

/* === Badges === */
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  white-space: nowrap;
}

.b-todo { background: #fff3cd; color: #664d03; }
.b-progress { background: #cfe9ef; color: var(--brand); }
.b-review { background: #ffe6c9; color: #a45a16; }
.b-done { background: #d1e7dd; color: #0f5132; }
.b-blocked { background: #f8d7da; color: #842029; }
.b-backlog { background: #e9ecef; color: #495057; }

/* === Stats Card === */
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.stat:hover {
  transform: translateY(-1px);
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--brand);
}

.stat-label {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

/* === Tables - Modern Design === */
.table-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  border: 1px solid #e8eaed;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f4 100%);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5f6368;
  padding: 14px 16px;
  border-bottom: 2px solid #e8eaed;
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

td {
  padding: 16px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
  font-size: 14px;
  color: #3c4043;
}

tr:last-child td {
  border-bottom: 0;
}

/* Row hover effect */
tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f8f9fa;
}

/* Task row priority indicator - modern style */
#page-tasks tbody tr {
  position: relative;
}

#page-tasks tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
}

#page-tasks tbody tr.priority-low::before { background: #34a853; }
#page-tasks tbody tr.priority-medium::before { background: #fbbc04; }
#page-tasks tbody tr.priority-high::before { background: #ea4335; }
#page-tasks tbody tr.priority-critical::before { background: #9334e6; }

/* Overdue row styling */
#page-tasks tbody tr.overdue {
  background: linear-gradient(90deg, #fef7f6 0%, #fff 100%);
}

#page-tasks tbody tr.overdue:hover {
  background: linear-gradient(90deg, #fce8e6 0%, #f8f9fa 100%);
}

/* Done row styling */
#page-tasks tbody tr.done {
  background: linear-gradient(90deg, #e6f4ea 0%, #fff 100%);
  opacity: 0.85;
}

#page-tasks tbody tr.done .task-title-text {
  text-decoration: line-through;
  color: #80868b;
}

/* Task title cell */
.task-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-title-text {
  font-weight: 500;
  color: #202124;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-title-text:hover {
  color: #1a73e8;
}

.task-has-path {
  color: #fbbc04;
  font-size: 16px;
}

/* Project cell */
.task-project {
  color: #5f6368;
  font-size: 13px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status badge in table */
.task-status .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Priority indicator */
.task-priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.task-priority::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.task-priority.low::before { background: #34a853; }
.task-priority.medium::before { background: #fbbc04; }
.task-priority.high::before { background: #ea4335; }
.task-priority.critical::before { background: #9334e6; }

/* Assignee cell */
.task-assignee {
  color: #5f6368;
  font-size: 13px;
}

/* Deadline cell */
.task-deadline {
  font-size: 13px;
  color: #5f6368;
  white-space: nowrap;
}

.task-deadline.overdue {
  color: #d93025;
  font-weight: 600;
}

.task-deadline.soon {
  color: #e37400;
}

/* Path indicator */
.task-path-icon {
  font-size: 18px;
  opacity: 0.7;
}

.task-path-icon.has-path {
  opacity: 1;
  color: #fbbc04;
}

/* Action buttons in table */
.task-actions {
  display: flex;
  gap: 6px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

tbody tr:hover .task-actions {
  opacity: 1;
}

.task-actions .btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 14px;
}

.task-actions .btn-icon:hover {
  background: #e8f0fe;
  color: #1a73e8;
  border-color: #d2e3fc;
}

.task-actions .btn-icon.btn-danger:hover {
  background: #fce8e6;
  color: #d93025;
  border-color: #f5c6cb;
}

/* Filters bar */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #e8eaed;
}

.filters-bar select,
.filters-bar input[type="text"],
.filters-bar input[type="search"] {
  padding: 10px 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #3c4043;
  min-width: 160px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filters-bar select:focus,
.filters-bar input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.filters-bar input[type="search"] {
  min-width: 200px;
}

/* Task row actions (legacy) */
.task-row-actions {
  display: none;
}

/* Task thumbs */
.task-thumbs {
  display: none;
}

/* === Modals === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  overflow: auto;
  padding: var(--space-xl);
}

.modal .box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 92%;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 20px;
  margin: auto;
  box-shadow: var(--shadow-lg);
}

.modal .xbtn {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-lg);
  line-height: 1;
  z-index: 1;
  transition: background var(--transition);
}

.modal .xbtn:hover {
  background: #f5f5f5;
}

/* Modal with split layout (content + chat) */
.modal .box.split-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 20px;
  align-items: start;
  max-width: 1200px;
  max-height: 90vh;
  overflow: auto;
}

.modal .modal-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: calc(90vh - 40px);
  padding-right: 6px;
  min-width: 0;
}

.modal .modal-chat {
  border-left: 1px solid var(--border);
  background: #f8f9fb;
  border-radius: var(--radius-lg);
  padding: 10px;
  overflow-y: auto;
  max-height: calc(90vh - 40px);
  min-width: 0;
}

/* Project View Modal */
#modalProjectView .box {
  max-width: 860px;
  width: min(92vw, 860px);
  display: flex;
  flex-direction: column;
}

#pvHead {
  display: flex;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: flex-start;
}

#pvActions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

#pvTasks {
  flex: 1 1 auto;
  overflow: auto;
  margin-top: var(--space-md);
  max-height: 62vh;
}

#pvFooter {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  align-items: center;
}

.pv-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-right: auto;
  font-weight: 700;
}

/* Lightbox */
#modalImg .box {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
}

#modalImg img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  display: block;
  margin: auto;
  cursor: zoom-out;
}

/* === Toast Notification === */
.notif {
  position: fixed;
  right: var(--space-lg);
  top: var(--space-lg);
  background: var(--ok);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  display: none;
  z-index: var(--z-toast);
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: slideIn 0.2s ease;
}

.notif.error { background: var(--bad); }
.notif.info { background: var(--info); }
.notif.warn { background: var(--warn); color: #222; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* === Notification Bell === */
.icon-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 12px;
  right: var(--space-lg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: var(--z-sticky);
}

/* === FAB Button (Feedback) === */
.fab-feedback {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  min-width: unset;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #f68c43 0%, #e67e22 100%);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4), 0 2px 4px rgba(0,0,0,0.1);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-feedback:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5), 0 4px 8px rgba(0,0,0,0.15);
}

.fab-feedback:active {
  transform: translateY(-1px) scale(1.02);
}

/* === Feedback Modal === */
.fb-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: var(--z-toast);
}

.fb-modal[hidden] {
  display: none;
}

.fb-box, .fb-dialog {
  position: relative;
  background: #fff;
  max-width: 680px;
  width: 92%;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.fb-x {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.fb-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

/* Feedback table */
.feedback-table .fb-row {
  cursor: pointer;
}

.feedback-table .fb-detail td {
  background: #fafbff;
}

/* === List Modal === */
#modalList .box {
  max-width: 700px;
}

#listBody {
  max-height: 50vh;
  overflow: auto;
}
/**
 * 3D ArtDesk - Chat Styles
 * Chat bubbles, mentions, rich text editor
 */

/* === Rich Text Editor === */
.rte {
  min-height: 140px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  outline: none;
  background: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rte:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 90, 100, 0.15);
}

.rte:empty::before {
  content: attr(placeholder);
  color: #99a;
  pointer-events: none;
}

.rte img {
  display: block;
  max-height: 250px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 6px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

/* Drop feedback */
.rte.drop-hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 90, 100, 0.18);
  background: #f7faff;
}

.rte.drop-error {
  border-color: var(--bad);
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
  animation: dropBlink 0.6s ease;
}

@keyframes dropBlink {
  0% { background: #fff; }
  50% { background: #fff4f4; }
  100% { background: #fff; }
}

/* === RTE Toolbar === */
.rte-wrap {
  position: relative;
  margin-top: 6px;
}

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fafbff;
  border: 1.5px solid var(--border);
  border-bottom: 0;
  padding: 6px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.rte-toolbar .rtb {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  transition: box-shadow var(--transition);
}

.rte-toolbar .rtb:hover {
  box-shadow: var(--shadow);
}

.rte-toolbar .rtb:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rte-toolbar .rt-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 0 2px;
}

.rte-wrap .rte {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* === File Attachments in RTE === */
.rte .file-attach {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin: 8px 0;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.rte .file-attach:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rte .file-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #f7f7fb;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

.rte .file-meta {
  font-size: 0.95rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.rte .file-meta small {
  color: #6b7280;
}

.rte .file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.rte .file-preview-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.rte .file-preview-btn:hover {
  text-decoration: underline;
}

/* File type colors */
.file-ext-pdf .file-thumb { background: #fee2e2; border-color: #fecaca; }
.file-ext-doc .file-thumb,
.file-ext-docx .file-thumb { background: #e0ecff; border-color: #c7ddff; }
.file-ext-xls .file-thumb,
.file-ext-xlsx .file-thumb { background: #e6f7ee; border-color: #c9efd9; }
.file-ext-ppt .file-thumb,
.file-ext-pptx .file-thumb { background: #fff0e1; border-color: #ffe2c2; }
.file-ext-txt .file-thumb { background: #f2f2f2; border-color: #e5e5e5; }

/* === Chat Lists === */
#chatList, #tchatList, .inline-chat .ic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* === Chat Message Bubbles === */
.msg {
  display: flex;
}

.msg.me {
  justify-content: flex-start;
}

.msg.other {
  justify-content: flex-end;
}

.msg .bubble {
  max-width: min(78%, 720px);
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.msg.me .bubble {
  background: var(--brand);
  color: #fff;
  border-bottom-left-radius: 6px;
}

.msg.other .bubble {
  background: #1f2a2e;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble .chat-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bubble .chat-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.bubble .chat-content a {
  color: #fff;
  text-decoration: underline;
}

.bubble .meta {
  margin-top: 6px;
  font-size: var(--font-size-sm);
  opacity: 0.85;
}

.bubble pre, .bubble code {
  white-space: pre-wrap;
  word-break: break-word;
}

.bubble pre {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  border-radius: var(--radius-sm);
  overflow: auto;
}

/* === Inline Chat (in modals) === */
.inline-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.inline-chat .ic-list {
  flex: 1;
  overflow: auto;
  background: #f8f9fb;
  border-radius: var(--radius-lg);
  padding: 8px;
}

.inline-chat .ic-editor {
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  background: #fff;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inline-chat .ic-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}

/* === Mentions === */
.mention {
  background: rgba(14, 90, 100, 0.12);
  border-radius: 4px;
  padding: 0 2px;
}

.mention-click {
  background: rgba(14, 90, 100, 0.12);
  border-radius: 4px;
  padding: 0 2px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* In bubbles */
.bubble .mention-click {
  background: rgba(255, 255, 255, 0.18);
}

.has-my-mention {
  outline: 2px solid rgba(42, 166, 184, 0.35);
}

.hi-msg {
  animation: hiBlink 1.4s ease 1;
  box-shadow: 0 0 0 3px rgba(14, 90, 100, 0.20) inset;
}

@keyframes hiBlink {
  0% { background: #fffbe6; }
  100% { background: #fff; }
}

/* Mention Suggestions Dropdown */
.mention-suggest {
  position: absolute;
  z-index: var(--z-modal);
  max-height: 220px;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  min-width: 240px;
}

.mention-suggest div {
  padding: 8px 10px;
  cursor: pointer;
}

.mention-suggest div:hover,
.mention-suggest .active {
  background: #f5f7fa;
}

/* === Chat Modal Specific === */
#modalProjChat .box,
#modalTaskChat .box {
  max-width: 700px;
}

#chatList, #tchatList {
  max-height: 50vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: #fafbff;
}
/**
 * 3D ArtDesk - Notifications CSS
 * Styles for notification bell, modal, and toasts
 */

/* === Notification Bell === */
.notification-bell {
  position: relative;
  margin-right: 16px;
}

.bell-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
}

.bell-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* === Notification Modal === */
.notification-modal-box {
  max-width: 700px;
  width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.notification-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.notification-modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.notification-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.notification-header-actions .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.notification-header-actions .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.notification-header-actions .close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.notification-header-actions .close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* === Notification Tabs === */
.notification-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  flex-shrink: 0;
}

.notif-tab {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-tab:hover {
  border-color: #667eea;
  color: #667eea;
}

.notif-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.notif-tab .tab-count {
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.notif-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.3);
}

/* === Notification List === */
.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: #fafafa;
}

.notification-list .empty {
  padding: 60px 20px;
  text-align: center;
  color: #888;
  font-size: 15px;
}

/* === Date Groups === */
.notif-date-group {
  margin-bottom: 8px;
}

.notif-date-header {
  padding: 12px 20px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* === Notification Item === */
.notif-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.notif-item:hover {
  background: var(--notif-bg, #f8f9fa);
}

.notif-item.unread {
  background: var(--notif-bg, #fff);
  border-left: 4px solid var(--notif-color, #667eea);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--notif-color, #667eea);
  border-radius: 50%;
}

.notif-item.unread .notif-icon {
  margin-left: 16px;
}

.notif-item.read {
  opacity: 0.7;
}

.notif-item.read:hover {
  opacity: 1;
}

/* === Notification Icon === */
.notif-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--notif-bg, #f0f0f0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* === Notification Content === */
.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.notif-message {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-context {
  color: #888;
  font-size: 12px;
  font-style: italic;
  margin-bottom: 6px;
}

.notif-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.notif-type-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--notif-color, #667eea);
  background: var(--notif-bg, #f0f0f0);
  padding: 2px 8px;
  border-radius: 10px;
}

.notif-time {
  font-size: 12px;
  color: #999;
}

/* === Notification Actions === */
.notif-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-mark-read {
  width: 28px;
  height: 28px;
  border: none;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}

.notif-item:hover .notif-mark-read {
  opacity: 1;
}

.notif-mark-read:hover {
  background: #c8e6c9;
  transform: scale(1.1);
}

/* === Modal Footer === */
.notification-modal-footer {
  padding: 12px 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  text-align: center;
  flex-shrink: 0;
}

.notif-summary {
  font-size: 13px;
  color: #888;
}

/* === Notification Toast (real-time) === */
.notification-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 380px;
  z-index: 10001;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--notif-color, #667eea);
}

.notification-toast.show {
  transform: translateX(0);
}

.notification-toast .toast-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: var(--notif-bg, #f0f0f0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-toast .toast-content {
  flex: 1;
  min-width: 0;
}

.notification-toast .toast-content strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}

.notification-toast .toast-content span {
  font-size: 13px;
  color: #666;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Priority Indicators === */
.notif-item[data-priority="urgent"] {
  animation: urgent-pulse 2s ease-in-out infinite;
}

.notif-item[data-priority="high"] .notif-icon {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

@keyframes urgent-pulse {
  0%, 100% { background-color: white; }
  50% { background-color: #fff5f5; }
}

/* === Mobile Responsive === */
@media (max-width: 600px) {
  .notification-modal-box {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  
  .notification-tabs {
    padding: 8px 12px;
  }
  
  .notif-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .notif-item {
    padding: 12px 16px;
  }
  
  .notif-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 16px;
  }
  
  .notification-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  
  .notification-header-actions .btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}
/**
 * 3D ArtDesk - Responsive Styles
 * Media queries pentru mobile și tablet
 */

/* ===================================
   TABLET (max-width: 980px)
   =================================== */
@media (max-width: 980px) {
  /* Tasks rail hidden */
  #page-tasks .tasks-layout {
    grid-template-columns: 1fr;
  }
  
  #page-tasks .tasks-rail {
    display: none;
  }
  
  /* Project cards - 2 columns max */
  #projectsGrid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
  }
}

/* ===================================
   TABLET SMALL (max-width: 940px)
   =================================== */
@media (max-width: 940px) {
  /* Modal split grid collapses */
  .modal .box.split-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   MOBILE LARGE (max-width: 900px)
   =================================== */
@media (max-width: 900px) {
  /* Sidebar becomes fixed overlay */
  .sidebar {
    position: fixed;
    left: -260px;
    top: 60px;
    transition: left var(--transition-slow);
    z-index: var(--z-sidebar);
    height: calc(100vh - 60px);
  }
  
  .sidebar.open {
    left: 0;
  }
  
  /* Show logout in sidebar on mobile */
  .menu-item.logout {
    display: block;
  }
  
  /* Hide logout button in header */
  .logout-btn {
    display: none;
  }
  
  /* Content padding */
  .content {
    padding: var(--space-lg);
  }
  
  /* Project view modal - single column */
  #modalProjectView .box.split-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }
  
  #modalProjectView .modal-main,
  #modalProjectView .modal-chat {
    max-height: none;
    overflow: visible;
  }
}

/* ===================================
   TASKS TABLE - CARD MODE (max-width: 860px)
   =================================== */
@media (max-width: 860px) {
  /* Tasks table becomes card list */
  #page-tasks .table-wrap {
    border: 0;
    background: transparent;
  }
  
  #page-tasks table,
  #page-tasks thead,
  #page-tasks tbody,
  #page-tasks th,
  #page-tasks td,
  #page-tasks tr {
    display: block;
  }
  
  #page-tasks thead {
    display: none;
  }
  
  #page-tasks tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
  }
  
  #page-tasks td {
    border: 0;
    padding: 10px 12px;
  }
  
  #page-tasks td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: var(--font-size-sm);
  }
  
  #page-tasks td:last-child {
    padding-bottom: 12px;
  }
  
  /* Hide actions column, show card footer */
  #page-tasks td.actions {
    display: none;
  }
  
  .task-row-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px dashed var(--border);
    background: #fafbff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  
  /* Task thumbs visible */
  .task-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  
  .task-thumbs img {
    height: 72px;
    width: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    flex: 0 0 auto;
  }
  
  /* Path link as pill */
  td[data-label="Cale"] a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: #eef0ff;
    text-decoration: none;
  }
  
  /* Users table - card mode */
  #page-users .table-wrap {
    border: 0;
    background: transparent;
  }
  
  #page-users table,
  #page-users thead,
  #page-users tbody,
  #page-users th,
  #page-users td,
  #page-users tr {
    display: block;
  }
  
  #page-users thead {
    display: none;
  }
  
  #page-users tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
  }
  
  #page-users td {
    border: 0;
    padding: 10px 12px;
  }
  
  #page-users td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
  }
  
  #page-users td.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* ===================================
   PROJECTS GRID - SINGLE COLUMN (max-width: 720px)
   =================================== */
@media (max-width: 720px) {
  #projectsGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .project-card {
    height: auto;
    max-height: none;
  }
  
  .project-card-header {
    padding: 16px 20px;
  }
  
  .project-card-body {
    padding: 16px 20px;
  }
  
  .project-card-footer {
    padding: 12px 20px;
  }
  
  .project-tasks-section {
    max-height: 160px;
  }
}

/* ===================================
   MOBILE (max-width: 680px)
   =================================== */
@media (max-width: 680px) {
  /* Hide logout button in header */
  .logout-btn {
    display: none;
  }
}

/* ===================================
   TASKS TABLE - HIDE COLUMNS (max-width: 600px)
   =================================== */
@media (max-width: 600px) {
  /* Hide project and deadline columns */
  #page-tasks table th:nth-child(2),
  #page-tasks table td:nth-child(2) {
    display: none;
  }
  
  #page-tasks table th:nth-child(6),
  #page-tasks table td:nth-child(6) {
    display: none;
  }
  
  /* Row layout for forms */
  .row {
    flex-direction: column;
  }
}

/* ===================================
   MODAL FULL SCREEN (max-width: 560px)
   =================================== */
@media (max-width: 560px) {
  .modal .box {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    inset: 0;
    transform: none;
    padding: 14px;
    position: fixed;
  }
  
  .rte {
    min-height: 120px;
  }
}

/* ===================================
   MOBILE SMALL (max-width: 520px)
   =================================== */
@media (max-width: 520px) {
  /* Hide username, show only avatar */
  .user-chip #userName {
    display: none;
  }
}

/* ===================================
   MOBILE EXTRA SMALL (max-width: 400px)
   =================================== */
@media (max-width: 400px) {
  .topbar {
    gap: 8px;
    padding: 10px 12px;
  }
  
  .brand-logo {
    height: clamp(24px, 7vw, 30px);
  }
  
  .brand-name {
    font-size: clamp(15px, 5vw, 18px);
  }
  
  /* Smaller buttons */
  .btn {
    padding: 10px 12px;
    font-size: var(--font-size-sm);
  }
  
  .btn-sm {
    padding: 6px 8px;
  }
  
  /* Compact filters */
  .filters {
    gap: 8px;
  }
  
  .filters input,
  .filters select {
    min-width: 0;
    font-size: var(--font-size);
  }
}

/* ===================================
   MODAL CHAT - RESPONSIVE SPLIT
   =================================== */
@media (max-width: 1100px) {
  .modal .box.split-grid {
    grid-template-columns: 1fr;
  }
  
  .modal .modal-chat {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 1024px) {
  .modal .box.split-grid {
    display: block;
    max-height: none;
  }
  
  .modal .box.split-grid .modal-chat {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    margin-top: 12px;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .sidebar,
  .header,
  .modal,
  .fab-feedback,
  .notif,
  .btn,
  .filters {
    display: none !important;
  }
  
  .content {
    padding: 0;
  }
  
  .page {
    display: block !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .card,
  .table-wrap {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
/* ============================================
   DARK MODE - ADAUGĂ LA FINALUL app.css
   ============================================ */

/* Variabile adiționale necesare (adaugă-le în :root dacă lipsesc) */
:root {
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text-secondary: #5f6368;
  --border-light: #f1f3f5;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg: #0f1419;
  --bg-alt: #1a1f26;
  --bg-elevated: #242b33;
  --cream: #1a1f26;
  --text: #e7e9ea;
  --text-secondary: #9ca3af;
  --muted: #6b7280;
  --border: #2d3640;
  --border-light: #374151;
  
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   DARK MODE - LAYOUT
   ============================================ */
[data-theme="dark"] body {
  background: var(--grad);
}

[data-theme="dark"] .layout {
  background: var(--bg);
}

[data-theme="dark"] .content {
  background: var(--bg);
}

[data-theme="dark"] .header {
  background: var(--bg-elevated);
  border-color: var(--border);
}

[data-theme="dark"] .sidebar {
  background: var(--bg-elevated);
  border-color: var(--border);
}

/* ============================================
   DARK MODE - PROJECT CARDS
   ============================================ */
[data-theme="dark"] .project-card {
  background: var(--bg-elevated);
  border-color: var(--border);
}

[data-theme="dark"] .project-card-body {
  background: var(--bg-elevated);
}

[data-theme="dark"] .project-desc {
  color: var(--text-secondary);
}

[data-theme="dark"] .project-desc:not(:empty)::after {
  background: linear-gradient(transparent, var(--bg-elevated));
}

[data-theme="dark"] .project-meta {
  background: var(--bg-alt);
  color: var(--text-secondary);
}

[data-theme="dark"] .project-meta.deadline {
  background: rgba(230, 81, 0, 0.2);
  color: #fb923c;
}

[data-theme="dark"] .project-tasks-section {
  background: var(--bg-alt);
}

[data-theme="dark"] .project-tasks-header {
  background: var(--bg);
  border-color: var(--border);
}

[data-theme="dark"] .tasks-label {
  color: var(--text);
}

[data-theme="dark"] .btn-add-task {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

[data-theme="dark"] .btn-add-task:hover {
  background: rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .pt-item {
  background: var(--bg-elevated);
}

[data-theme="dark"] .pt-item:hover {
  background: rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .pt-title,
[data-theme="dark"] .pt-title a {
  color: var(--text);
}

[data-theme="dark"] .pt-title a:hover {
  color: #60a5fa;
}

[data-theme="dark"] .pt-deadline {
  color: var(--muted);
}

[data-theme="dark"] .project-card-footer {
  background: var(--bg-alt);
  border-color: var(--border);
}

[data-theme="dark"] .pv-more {
  color: #60a5fa;
}

[data-theme="dark"] .text-muted {
  color: var(--muted);
}

/* ============================================
   DARK MODE - BUTTONS
   ============================================ */
[data-theme="dark"] .btn-primary {
  background: var(--grad);
  color: #fff;
}

[data-theme="dark"] .btn-secondary {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--bg);
  border-color: var(--muted);
}

[data-theme="dark"] .btn-sm {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .btn-sm:hover {
  background: var(--bg);
}

[data-theme="dark"] .btn-action {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .btn-action:hover {
  background: var(--bg);
  border-color: var(--muted);
}

[data-theme="dark"] .btn-action-danger {
  color: #f87171;
}

[data-theme="dark"] .btn-action-danger:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}

[data-theme="dark"] .btn-danger {
  background: var(--bad);
  color: #fff;
}

[data-theme="dark"] .linklike {
  color: #60a5fa;
}

/* ============================================
   DARK MODE - TABLES
   ============================================ */
[data-theme="dark"] .table-wrap {
  background: var(--bg-elevated);
  border-color: var(--border);
}

[data-theme="dark"] th {
  background: var(--bg-alt);
  color: var(--muted);
  border-color: var(--border);
}

[data-theme="dark"] td {
  color: var(--text);
  border-color: var(--border-light);
}

[data-theme="dark"] tbody tr:hover {
  background: var(--bg-alt);
}

[data-theme="dark"] .task-title-text {
  color: var(--text);
}

[data-theme="dark"] .task-title-text:hover {
  color: #60a5fa;
}

[data-theme="dark"] .task-assignee,
[data-theme="dark"] .task-deadline {
  color: var(--text-secondary);
}

[data-theme="dark"] .task-deadline.overdue {
  color: #f87171;
}

[data-theme="dark"] .task-actions .btn-icon {
  color: var(--muted);
}

[data-theme="dark"] .task-actions .btn-icon:hover {
  background: var(--bg-alt);
  color: #60a5fa;
}

[data-theme="dark"] .task-actions .btn-icon.btn-danger:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

[data-theme="dark"] #page-tasks tbody tr.overdue {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.1) 0%, var(--bg-elevated) 100%);
}

[data-theme="dark"] #page-tasks tbody tr.done {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.1) 0%, var(--bg-elevated) 100%);
}

/* ============================================
   DARK MODE - STATS
   ============================================ */
[data-theme="dark"] .stat {
  background: var(--bg-elevated);
  border-color: var(--border);
}

[data-theme="dark"] .stat-label {
  color: var(--muted);
}

/* ============================================
   DARK MODE - CARDS & MODALS
   ============================================ */
[data-theme="dark"] .card {
  background: var(--bg-elevated);
  border-color: var(--border);
}

[data-theme="dark"] .modal .box {
  background: var(--bg-elevated);
  border-color: var(--border);
}

[data-theme="dark"] .modal .modal-chat {
  background: var(--bg-alt);
  border-color: var(--border);
}

[data-theme="dark"] .xbtn {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .xbtn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* ============================================
   DARK MODE - FORMS
   ============================================ */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 90, 100, 0.2);
}

[data-theme="dark"] label {
  color: var(--text-secondary);
}

[data-theme="dark"] .filters select,
[data-theme="dark"] .filters input {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .filters-bar {
  background: var(--bg-elevated);
  border-color: var(--border);
}

[data-theme="dark"] .filters-bar select,
[data-theme="dark"] .filters-bar input {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

/* ============================================
   DARK MODE - MENU & NAVIGATION
   ============================================ */
[data-theme="dark"] .menu-item {
  color: var(--text);
}

[data-theme="dark"] .menu-item:hover,
[data-theme="dark"] .menu-item.active {
  background: rgba(14, 90, 100, 0.2);
}

[data-theme="dark"] .menu-item.active {
  color: #5eead4;
}

[data-theme="dark"] .menu-sep {
  border-color: var(--border);
}

/* ============================================
   DARK MODE - TOPBAR
   ============================================ */
[data-theme="dark"] .topbar .btn-secondary,
[data-theme="dark"] .topbar .btn-sm {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .topbar .btn-secondary:hover,
[data-theme="dark"] .topbar .btn-sm:hover {
  background: var(--bg);
}

[data-theme="dark"] .bell-btn {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .bell-btn:hover {
  background: var(--bg);
}

[data-theme="dark"] .user-chip #userName {
  color: var(--text);
}

[data-theme="dark"] .brand-name {
  color: var(--text);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   DARK MODE - RTE EDITOR
   ============================================ */
[data-theme="dark"] .rte {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .rte-toolbar {
  background: var(--bg);
  border-color: var(--border);
}

[data-theme="dark"] .rtb {
  color: var(--text-secondary);
}

[data-theme="dark"] .rtb:hover {
  background: var(--bg-alt);
  color: var(--text);
}

[data-theme="dark"] .rtb.active {
  background: rgba(14, 90, 100, 0.2);
  color: #5eead4;
}

/* ============================================
   DARK MODE - CHAT
   ============================================ */
[data-theme="dark"] .msg .bubble {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .msg.mine .bubble {
  background: rgba(14, 90, 100, 0.2);
  border-color: rgba(14, 90, 100, 0.3);
}

[data-theme="dark"] .msg-meta {
  color: var(--muted);
}

[data-theme="dark"] .chat-list {
  background: var(--bg-alt);
}

/* ============================================
   DARK MODE - NOTIFICATIONS
   ============================================ */
[data-theme="dark"] .notification-panel {
  background: var(--bg-elevated);
  border-color: var(--border);
}

[data-theme="dark"] .notification-header {
  background: var(--bg-alt);
  border-color: var(--border);
}

[data-theme="dark"] .notification-header h3 {
  color: var(--text);
}

[data-theme="dark"] .notification-tabs {
  border-color: var(--border);
}

[data-theme="dark"] .notification-tab {
  color: var(--text-secondary);
}

[data-theme="dark"] .notification-tab:hover {
  background: var(--bg-alt);
}

[data-theme="dark"] .notification-tab.active {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

[data-theme="dark"] .notification-item {
  border-color: var(--border-light);
}

[data-theme="dark"] .notification-item:hover {
  background: var(--bg-alt);
}

[data-theme="dark"] .notification-title {
  color: var(--text);
}

[data-theme="dark"] .notification-message {
  color: var(--text-secondary);
}

[data-theme="dark"] .notification-time {
  color: var(--muted);
}

[data-theme="dark"] .notification-empty {
  color: var(--muted);
}

/* ============================================
   DARK MODE - BADGES
   ============================================ */
[data-theme="dark"] .badge {
  border: 1px solid transparent;
}

[data-theme="dark"] .b-todo {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

[data-theme="dark"] .b-progress {
  background: rgba(14, 90, 100, 0.2);
  color: #5eead4;
}

[data-theme="dark"] .b-review {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

[data-theme="dark"] .b-done {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

[data-theme="dark"] .b-blocked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

[data-theme="dark"] .b-backlog {
  background: var(--bg-alt);
  color: var(--muted);
}

/* ============================================
   DARK MODE - MISC
   ============================================ */
[data-theme="dark"] .empty {
  color: var(--muted);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text);
}

[data-theme="dark"] .notif {
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] pre,
[data-theme="dark"] code {
  background: var(--bg-alt);
  color: #5eead4;
}

[data-theme="dark"] hr,
[data-theme="dark"] .divider {
  border-color: var(--border);
}

[data-theme="dark"] ::placeholder {
  color: var(--muted);
}

[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.theme-toggle:hover {
  background: rgba(14, 90, 100, 0.1);
  border-color: var(--brand);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--border);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--muted);
}

/* ============================================
   LOGIN - DARK MODE
   ============================================ */
[data-theme="dark"] #loginPage .card.login {
  background: rgba(26, 31, 38, 0.95);
  border-color: var(--border);
}

[data-theme="dark"] #loginPage label {
  color: var(--text-secondary);
}

[data-theme="dark"] #loginPage input {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] #loginPage input:focus {
  border-color: var(--brand);
}

[data-theme="dark"] #loginPage .title {
  color: var(--text);
}

/* ============================================
   BADGE - WAITING FEEDBACK (adaugă după linia 1046)
   ============================================ */
.b-waiting,
.b-feedback { 
  background: #fef3c7; 
  color: #92400e; 
  border: 1px solid #fcd34d;
}

[data-theme="dark"] .b-waiting,
[data-theme="dark"] .b-feedback {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

/* ============================================
   LOGIN PAGE - GLASSMORPHISM REDESIGN
   ============================================ */
#loginPage.login-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-xl);
  overflow: auto;
  background: var(--grad);
  /* Animated background */
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Floating shapes */
#loginPage.login-wrap::before,
#loginPage.login-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

#loginPage.login-wrap::before {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

#loginPage.login-wrap::after {
  width: 300px;
  height: 300px;
  background: var(--brand);
  bottom: -80px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Login Card - Glassmorphism */
#loginPage .card.login {
  width: min(480px, 90vw);
  max-width: 480px;
  margin: 0;
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
  animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo animation */
#loginPage .login-brand {
  text-align: center;
  margin-bottom: 32px;
}

#loginPage .brand-logo-xl {
  width: 100px;
  height: auto;
  margin-bottom: 16px;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(14, 90, 100, 0.2));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#loginPage .title {
  font-size: 32px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

/* Form styling */
#loginPage .form-group {
  margin-bottom: 20px;
  text-align: left;
}

#loginPage .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#loginPage .form-group input[type="text"],
#loginPage .form-group input[type="password"],
#loginPage .form-group input[name="username"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: #1f2937;
  transition: all 0.2s ease;
}

#loginPage .form-group input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 90, 100, 0.1);
}

#loginPage .form-group input::placeholder {
  color: #9ca3af;
}

/* Remember me checkbox */
#loginPage .form-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

#loginPage .form-group input[type="checkbox"] + label {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

/* Login button */
#loginPage .btn-primary {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--grad);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#loginPage .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

#loginPage .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 90, 100, 0.3);
}

#loginPage .btn-primary:hover::before {
  left: 100%;
}

#loginPage .btn-primary:active {
  transform: translateY(0);
}

/* Logout message */
#loginPage .logout-message {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
  animation: messageAppear 0.4s ease;
}

#loginPage .logout-message.inactivity {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #f87171;
}

#loginPage .logout-message .message-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

#loginPage .logout-message .message-text {
  font-size: 14px;
  font-weight: 500;
  color: #92400e;
}

#loginPage .logout-message.inactivity .message-text {
  color: #991b1b;
}

@keyframes messageAppear {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark mode login */
[data-theme="dark"] #loginPage .card.login {
  background: rgba(26, 31, 38, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] #loginPage .form-group label {
  color: #9ca3af;
}

[data-theme="dark"] #loginPage .form-group input {
  background: rgba(15, 20, 25, 0.8);
  border-color: #374151;
  color: #e7e9ea;
}

[data-theme="dark"] #loginPage .form-group input:focus {
  background: #0f1419;
  border-color: var(--brand);
}

[data-theme="dark"] #loginPage .form-group input[type="checkbox"] + label {
  color: #9ca3af;
}

[data-theme="dark"] #loginPage .logout-message {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] #loginPage .logout-message .message-text {
  color: #fbbf24;
}

[data-theme="dark"] #loginPage .logout-message.inactivity {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}

[data-theme="dark"] #loginPage .logout-message.inactivity .message-text {
  color: #f87171;
}

/* ============================================
   IDLE POPUP - INACTIVITY WARNING
   ============================================ */
.idle-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.idle-overlay.active {
  opacity: 1;
  visibility: visible;
}

.idle-popup {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.idle-overlay.active .idle-popup {
  transform: scale(1);
}

.idle-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.idle-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.idle-message {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
}

.idle-countdown {
  font-size: 48px;
  font-weight: 800;
  color: var(--bad);
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

.idle-countdown.warning {
  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { color: var(--bad); transform: scale(1); }
  50% { color: #dc2626; transform: scale(1.1); }
}

.idle-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.idle-btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.idle-btn-primary {
  background: var(--grad);
  color: #fff;
  border: none;
}

.idle-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 90, 100, 0.3);
}

.idle-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.idle-btn-secondary:hover {
  background: #e5e7eb;
}

/* Dark mode idle popup */
[data-theme="dark"] .idle-popup {
  background: #1a1f26;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .idle-title {
  color: #e7e9ea;
}

[data-theme="dark"] .idle-message {
  color: #9ca3af;
}

[data-theme="dark"] .idle-btn-secondary {
  background: #374151;
  color: #e7e9ea;
  border-color: #4b5563;
}

[data-theme="dark"] .idle-btn-secondary:hover {
  background: #4b5563;
}

/* ============================================
   TABLE FIXES - ALIGNMENT
   ============================================ */
#page-tasks table th:last-child,
#page-tasks table td:last-child {
  text-align: center;
  width: 120px;
}

/* Ensure actions column header is visible */
#page-tasks table th:last-child {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}