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

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

:root {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f8;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-bg-hover: rgba(0, 0, 0, 0.03);
  --text-primary: #1a1d2e;
  --text-secondary: #5a5f7a;
  --text-muted: #8b90a8;
  --accent: #4a90e2;
  --accent-hover: #3a7bd5;
  --accent-light: rgba(74, 144, 226, 0.08);
  --accent-glow: rgba(74, 144, 226, 0.2);
  --danger: #e55b5b;
  --danger-hover: #d14545;
  --success: #34c772;
  --success-light: rgba(52, 199, 114, 0.06);
  --success-border: rgba(52, 199, 114, 0.2);
  --warning: #f0a030;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --transition: 0.2s ease;
  --header-height: 64px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  color: var(--text-primary);
  background: transparent;
}

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

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: var(--danger-hover);
}

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid rgba(229, 91, 91, 0.3);
}

.btn-outline-danger:hover {
  background: rgba(229, 91, 91, 0.06);
  border-color: var(--danger);
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
  background: var(--bg-tertiary);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 29, 46, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.modal {
  width: 92%;
  max-width: 440px;
  padding: 32px;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.modal-lg {
  max-width: 520px;
  text-align: left;
}

.modal-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.modal h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-align: left;
}

.form-input,
input[type="text"],
input[type="password"],
.form-textarea,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
.form-textarea:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-secondary);
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  font-weight: 500;
  text-align: left;
}

.hidden-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* === Image Upload === */
.image-upload-area {
  position: relative;
  cursor: pointer;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  transition: all var(--transition);
  background: var(--bg-tertiary);
}

.image-placeholder:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.image-placeholder svg {
  stroke: var(--text-muted);
  transition: stroke var(--transition);
}

.image-placeholder:hover svg {
  stroke: var(--accent);
}

.image-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.image-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  font-size: 22px;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.user-avatar {
  font-size: 15px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* === Layout === */
.app {
  padding-top: var(--header-height);
}

.page {
  min-height: calc(100vh - var(--header-height));
}

.page-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 32px 16px;
}

/* === Page Header === */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* === Projects Grid === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
  animation: fadeIn 0.3s ease;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.project-card-info {
  flex: 1;
  min-width: 0;
}

.project-card-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}

.project-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.project-card-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.project-card:hover .project-card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* === Empty State === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 52px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  max-width: 360px;
}

.cards-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.cards-empty p {
  font-size: 14px;
  max-width: 320px;
}

/* === User Menu === */
.user-menu-wrap {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.user-menu-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

.user-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.02);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  transition: background var(--transition);
}

.dropdown-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.dropdown-item.text-danger:hover {
  background: rgba(229, 91, 91, 0.08);
  color: var(--danger);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Modal Styles */
.auth-content {
  max-width: 400px;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* === Project Header === */
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

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

.project-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.project-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Sort group */
.sort-group {
  display: flex;
  gap: 2px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--glass-border);
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
}

.sort-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.sort-btn.active {
  color: var(--accent);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

/* === Cards Grid === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  animation: fadeIn 0.3s ease;
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Completed card */
.card.completed {
  background: var(--success-light);
  border-color: var(--success-border);
}

.card.completed .card-text {
  color: var(--text-secondary);
}

.card-download-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-download-btn:hover {
  background: var(--bg-secondary);
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 16px;
}

.card-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 500;
}

/* === Card Top (meta + actions) === */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.card-meta-info {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}

.card-actions .btn {
  padding: 6px;
  transition: background var(--transition);
}

/* Card image wrap (inside card-body) */
.card-image-wrap {
  position: relative;
  margin: 0 -16px;
  margin-bottom: 10px;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity var(--transition);
  display: block;
}

.card-image:hover {
  opacity: 0.9;
}

/* Toggle completed button */
.card-complete-btn {
  padding: 5px !important;
  opacity: 1 !important;
  border: 1.5px solid var(--glass-border) !important;
  border-radius: 6px !important;
  background: transparent !important;
  transition: all var(--transition) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-complete-btn:hover {
  border-color: var(--success) !important;
  background: var(--success-light) !important;
}

.card-complete-btn.is-completed {
  background: var(--success) !important;
  border-color: var(--success) !important;
}

.card-complete-btn.is-completed svg {
  stroke: #fff;
}

/* === Comments === */
.card-comments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.comments-list:empty {
  display: none;
}

.comment-item {
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  margin-bottom: 8px;
  animation: fadeIn 0.2s ease;
}

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

.comment-user {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.comment-time {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.comment-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.comment-img:hover {
  opacity: 0.85;
}

.comment-form-wrap {
  margin-top: 8px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-input {
  flex: 1;
  padding: 8px 12px !important;
  font-size: 13px !important;
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
}

.comment-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent-glow) !important;
  background: var(--bg-secondary) !important;
}

.comment-image-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  background: var(--bg-tertiary);
  transition: all var(--transition);
  flex-shrink: 0;
}

.comment-image-label:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

.comment-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  border: none;
  transition: all var(--transition);
  flex-shrink: 0;
}

.comment-send-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.comment-image-preview {
  position: relative;
  display: inline-block;
  margin-top: 4px;
}

.comment-image-preview img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.comment-image-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === History Panel === */
.history-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  animation: slideRight 0.3s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.06);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.history-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.history-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  animation: fadeIn 0.2s ease;
}

.history-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.history-item-user {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.history-item-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.history-item-detail {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.history-item-action {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-right: 4px;
}

.action-create {
  background: rgba(52, 199, 114, 0.1);
  color: var(--success);
}

.action-update {
  background: rgba(240, 160, 48, 0.1);
  color: var(--warning);
}

.action-delete {
  background: rgba(229, 91, 91, 0.1);
  color: var(--danger);
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 29, 46, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.25s ease;
  cursor: pointer;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 5px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.16);
}

/* === Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .page-content {
    padding: 20px 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 0 16px;
  }

  .history-panel {
    width: 100%;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .user-badge {
    display: none;
  }
}