/* ===== CSS Variables & Reset ===== */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(20, 20, 30, 0.7);
  --bg-card-hover: rgba(30, 30, 45, 0.8);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(99, 102, 241, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Background Effects ===== */
.background-effects {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  bottom: -150px;
  left: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: #ec4899;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  opacity: 0.2;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* ===== Container ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.header {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.logo-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.section-icon {
  font-size: 1.5rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
}

/* ===== Form Elements ===== */
.input-group {
  margin-bottom: var(--space-lg);
}

.input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.input-group textarea,
.input-group input[type="text"] {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: var(--transition-fast);
}

.input-group textarea:focus,
.input-group input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

.input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Custom Code Wrapper */
.custom-code-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.custom-code-wrapper:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.code-prefix {
  padding: var(--space-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.custom-code-wrapper input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Preview Section */
.preview-section {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  animation: fadeIn 0.3s ease;
}

.preview-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--success);
  margin-bottom: var(--space-sm);
}

.preview-url {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-all;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  width: 100%;
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn-copy {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  color: var(--text-secondary);
}

.btn-copy:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.btn-copy svg {
  width: 20px;
  height: 20px;
}

.btn-small {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

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

.btn-refresh:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-refresh svg {
  width: 18px;
  height: 18px;
}

.btn-delete {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: var(--space-sm);
}

.btn-delete:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.btn-delete svg {
  width: 16px;
  height: 16px;
}

/* ===== Result Section ===== */
.result-section {
  animation: slideUp 0.4s ease;
}

.result-url-wrapper {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.result-url {
  flex: 1;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: 500;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.detail-item {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.875rem;
}

.detail-label {
  color: var(--text-muted);
  min-width: 100px;
}

.detail-value {
  color: var(--text-secondary);
  word-break: break-all;
}

/* ===== Links List ===== */
.links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-height: 400px;
  overflow-y: auto;
}

.links-list::-webkit-scrollbar {
  width: 6px;
}

.links-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.links-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.links-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.link-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.link-item:hover {
  border-color: var(--border-glow);
}

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

.link-short {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.link-short a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.link-short a:hover {
  text-decoration: underline;
}

.link-clicks {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.link-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-actions {
  display: flex;
  gap: var(--space-xs);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: auto;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 1000;
}

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

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--error);
}

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

  to {
    opacity: 1;
  }
}

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

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

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .container {
    padding: var(--space-md);
  }

  .header {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .logo h1 {
    font-size: 2rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .glass-card {
    padding: var(--space-lg);
  }

  .code-prefix {
    font-size: 0.75rem;
    padding: var(--space-sm) var(--space-md);
  }

  .result-url-wrapper {
    flex-direction: column;
  }

  .btn-copy {
    width: 100%;
  }
}

/* ===== Loading State ===== */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== Auth Section ===== */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.auth-section {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.auth-guest,
.auth-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.auth-guest .btn {
  min-width: 100px;
  justify-content: center;
  white-space: nowrap;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.username {
  color: var(--text-secondary);
  font-weight: 500;
}

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

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

/* Guest Notice */
.guest-notice {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: var(--warning);
}

.guest-notice a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.modal {
  width: 100%;
  max-width: 400px;
  margin: var(--space-lg);
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.modal-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.modal-tab {
  flex: 1;
  padding: var(--space-md);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-tab.active {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.modal-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.auth-form .btn-primary {
  margin-top: var(--space-md);
}

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
  min-height: 1.25rem;
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.modal-actions .btn {
  flex: 1;
}

/* ===== Dashboard ===== */
.dashboard-container {
  max-width: 960px;
}

.dashboard-container .logo {
  text-decoration: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.stat-icon {
  font-size: 2.5rem;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Links Table */
.links-table-wrapper {
  overflow-x: auto;
}

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

.links-table th,
.links-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.links-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
}

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

.short-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.short-link:hover {
  text-decoration: underline;
}

.url-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.actions-cell {
  display: flex;
  gap: var(--space-xs);
}

.btn-icon-small {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon-small:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-icon-small.delete-btn:hover {
  border-color: var(--error);
  color: var(--error);
}

.empty-row td {
  border: none;
}

/* Password input */
.input-group input[type="password"] {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.input-group input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Responsive Dashboard */
@media (max-width: 640px) {
  .header-top {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  .links-table th:nth-child(2),
  .links-table td:nth-child(2),
  .links-table th:nth-child(4),
  .links-table td:nth-child(4) {
    display: none;
  }
}

/* ===== New Dashboard Styles ===== */

/* Dashboard Navigation */
.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 500;
  font-size: 0.9rem;
}

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

/* Dashboard Main */
.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Welcome Section */
.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.welcome-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.btn-create {
  width: auto;
  padding: var(--space-md) var(--space-xl);
  gap: var(--space-sm);
}

/* Stat Icon Wrappers */
.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.stat-icon-links {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
}

.stat-icon-clicks {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.stat-icon-avg {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

/* Section Title */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title .section-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.section-title h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Link Cell */
.link-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Click Badge */
.click-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Text Center */
.text-center {
  text-align: center !important;
}

/* Empty Icon Wrapper */
.empty-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon-wrapper svg {
  width: 40px;
  height: 40px;
  color: var(--accent-primary);
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.empty-state .btn {
  width: auto;
  display: inline-flex;
  text-decoration: none;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-header .modal-close {
  position: static;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Dashboard 3-column stats */
.dashboard-container .stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Dashboard responsive */
@media (max-width: 768px) {
  .dashboard-container .stats-grid {
    grid-template-columns: 1fr;
  }

  .welcome-section {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .nav-user .user-info {
    display: none;
  }
}