/*
 * Modern, clean design inspired by Mailchimp and SurveyMonkey
 * Supports dark mode via CSS prefers-color-scheme
 */

/* CSS Custom Properties for Light/Dark Mode */
:root {
  /* Light mode colors */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8f9fa;
  --text-primary: #2c2c2c;
  --text-secondary: #6c757d;
  --border-primary: #e9ecef;
  --border-secondary: #f1f3f4;
  --shadow-primary: rgba(0, 0, 0, 0.08);
  --shadow-secondary: rgba(0, 0, 0, 0.12);
  
  /* Brand purple theme */
  --purple-primary: #667eea;
  --purple-secondary: #764ba2;
  --purple-light: rgba(102, 126, 234, 0.1);
  --purple-medium: rgba(102, 126, 234, 0.3);
  --purple-dark: rgba(102, 126, 234, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #333333;
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --border-primary: #495057;
    --border-secondary: #3a3a3a;
    --shadow-primary: rgba(0, 0, 0, 0.3);
    --shadow-secondary: rgba(0, 0, 0, 0.4);
    
    /* Dark mode purple adjustments */
    --purple-light: rgba(102, 126, 234, 0.15);
    --purple-medium: rgba(102, 126, 234, 0.25);
    --purple-dark: rgba(102, 126, 234, 0.35);
  }
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Wider layout for creation page */
body:has(.creation-hero) .container {
  max-width: 1000px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--purple-primary);
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-block;
}

.tagline {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
}

/* Card design */
.card {
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow-primary);
  padding: 32px;
  margin-bottom: 24px;
  transition: background-color 0.3s ease;
}

/* Typography */
h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-align: center;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Form styles */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 14px;
}

input[type="text"],
input[type="url"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

input[type="text"]:focus,
input[type="url"]:focus {
  outline: none;
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px var(--purple-light);
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--purple-medium);
  filter: brightness(1.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  width: 100%;
  margin-top: 8px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

/* Status messages */
.status-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* Slug status specific styling */
.slug-status {
  margin-top: 12px;
}

.slug-status .status-message {
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.status-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.status-text {
  flex: 1;
  line-height: 1.5;
}

/* Loading animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.status-message:has(.status-icon:contains("🔄")) .status-icon {
  animation: spin 1s linear infinite;
}

.status-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-info {
  background-color: #cce7ff;
  color: #004085;
  border: 1px solid #99d3ff;
}

/* URL display */
.url-display {
  background-color: var(--bg-tertiary);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 14px;
  word-break: break-all;
  margin-bottom: 16px;
  color: var(--text-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Copy button functionality */
.copy-section {
  position: relative;
}

.copy-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-50%) translateY(-1px);
  filter: brightness(1.1);
}

/* Button groups */
.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-group .btn {
  flex: 1;
}

/* Animation for success states */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Improved URL display with copy functionality */
.url-display-container {
  position: relative;
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.url-display {
  background: transparent;
  border: none;
  margin: 0;
  padding: 16px 80px 16px 16px;
}

/* Analytics Styles */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.breakdown-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-secondary);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-name {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.stat-value {
  font-weight: 600;
  color: var(--purple-primary);
  margin-left: 16px;
}

.stat-bar {
  height: 4px;
  background-color: var(--border-primary);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-secondary));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Admin Layout - Full width breakout */
.admin-container {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.admin-spacer {
  height: 40px;
}

.admin-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow-primary);
  padding: 40px;
  margin-bottom: 24px;
  width: 100%;
  transition: background-color 0.3s ease;
}

/* Admin Table Styles */
.table-container {
  overflow-x: auto;
  margin-bottom: 32px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  table-layout: fixed;
  transition: background-color 0.3s ease;
}

.admin-table th {
  background-color: var(--bg-tertiary);
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.admin-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-secondary);
  vertical-align: middle;
  transition: border-color 0.3s ease;
}

.admin-table tr:hover {
  background-color: var(--bg-tertiary);
  transition: background-color 0.2s ease;
}

.url-cell {
  width: 60%;
}

.target-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  line-height: 1.5;
}

.target-link:hover {
  color: var(--purple-primary);
  text-decoration: underline;
}

.visits-cell {
  text-align: center;
  width: 10%;
}

.visit-count {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-secondary));
  color: white;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.date-cell {
  color: var(--text-secondary);
  font-size: 15px;
  white-space: nowrap;
  width: 12%;
  line-height: 1.5;
}

.token-cell {
  width: 18%;
}

.token-code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 14px;
  background-color: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  display: inline-block;
  line-height: 1.4;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.actions-cell {
  width: 10%;
}

.btn-small {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-primary);
  transition: border-color 0.3s ease;
}

.page-info {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* URL Hero Section */
.url-hero {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 32px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.url-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.success-icon {
  font-size: 16px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  font-weight: 400;
}

.url-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.url-display-main {
  background: rgba(255, 255, 255, 0.95);
  color: #2c2c2c;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 300px;
}

.copy-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.copy-button.copied {
  background: #28a745;
  border-color: #28a745;
}

.target-url-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  opacity: 0.9;
  flex-wrap: wrap;
}

.target-label {
  font-weight: 500;
}

.target-url-link {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition: text-decoration-color 0.3s ease;
}

.target-url-link:hover {
  text-decoration-color: white;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.action-button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

/* Enhanced Analytics Dashboard */
.analytics-dashboard {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-secondary);
  padding: 40px;
  margin-bottom: 32px;
  transition: background-color 0.3s ease;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 40px;
}

.dashboard-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dashboard-icon {
  font-size: 32px;
}

.dashboard-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow-secondary);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.stat-primary {
  border-color: var(--purple-primary);
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  color: white;
}

.stat-secondary {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.stat-accent {
  border-color: #a855f7;
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: white;
}

.stat-tertiary {
  border-color: #c084fc;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
}

.stat-icon {
  font-size: 48px;
  opacity: 0.9;
}

.stat-content {
  flex: 1;
  text-align: left;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.analytics-card {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.analytics-card.full-width {
  grid-column: 1 / -1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-primary);
  transition: border-color 0.3s ease;
}

.card-icon {
  font-size: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.breakdown-content {
  min-height: 100px;
}

.analytics-empty {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  transition: background-color 0.3s ease;
}

.empty-illustration {
  font-size: 72px;
  margin-bottom: 24px;
  opacity: 0.7;
}

.empty-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.empty-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-actions {
  display: flex;
  justify-content: center;
}

.empty-actions .copy-button {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  color: white;
  border: none;
}

.empty-actions .copy-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* URL Creation Page Styles */
.creation-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 64px 48px;
  margin-bottom: 32px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.creation-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20v20h40V20H20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.creation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.creation-icon {
  font-size: 16px;
}

.creation-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.creation-subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin: 0;
  font-weight: 400;
}

.creation-form-container {
  background: var(--bg-secondary);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow-secondary);
  padding: 48px 80px;
  margin-bottom: 48px;
  border: 1px solid var(--border-primary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.creation-form {
  max-width: none;
}

.form-section {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}

.form-icon {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  color: white;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--purple-medium);
}

.form-content {
  flex: 1;
}

.form-section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.enhanced-form-group {
  margin-bottom: 20px;
}

.enhanced-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 16px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 20px;
  z-index: 2;
  font-size: 24px;
  opacity: 0.7;
}

/* Single cohesive input field with prefix */
.prefixed-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  border: 2px solid var(--border-primary);
  border-radius: 14px;
  background: var(--bg-secondary);
  transition: all 0.3s ease;
  cursor: text;
  position: relative;
  overflow: hidden;
}

.prefixed-input-container:focus-within {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 4px var(--purple-light);
}

.input-prefix {
  padding: 20px 0 20px 24px;
  font-size: 18px;
  color: #8e9297;
  font-weight: 500;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.enhanced-input {
  width: 100%;
  padding: 20px 24px;
  border: 2px solid var(--border-primary);
  border-radius: 14px;
  font-size: 18px;
  transition: all 0.3s ease;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 500;
}

.enhanced-input-with-prefix {
  border: none;
  background: transparent;
  outline: none;
  padding: 20px 24px 20px 8px;
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  color: var(--text-primary);
}

.enhanced-input-with-prefix::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.enhanced-input:focus {
  outline: none;
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 4px var(--purple-light);
}

.enhanced-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.form-divider {
  display: flex;
  align-items: center;
  margin: 48px 0;
  gap: 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e9ecef 50%, transparent 100%);
}

.divider-text {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-actions {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  transition: background-color 0.3s ease;
}

.form-actions .btn-group {
  margin-top: 0;
  gap: 16px;
}

.action-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.action-icon {
  font-size: 32px;
}

.action-text {
  flex: 1;
}

.action-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.action-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.creation-submit-btn {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--purple-medium);
  white-space: nowrap;
}

.creation-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--purple-dark);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow-primary);
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }
  
  .card {
    padding: 24px;
  }
  
  h1 {
    font-size: 22px;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    flex: none;
  }
  
  .admin-container {
    padding: 20px;
  }
  
  .admin-card {
    padding: 24px;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 16px 12px;
    font-size: 14px;
  }
  
  .url-cell {
    width: 50%;
  }
  
  .token-cell {
    width: 20%;
  }
  
  .pagination {
    flex-direction: column;
    gap: 16px;
  }
  
  .pagination .btn {
    width: 100%;
  }
  
  /* Hero Section Mobile */
  .url-hero {
    padding: 32px 24px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .url-showcase {
    flex-direction: column;
    gap: 16px;
  }
  
  .url-display-main {
    min-width: auto;
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .action-button {
    justify-content: center;
  }
  
  /* Analytics Mobile */
  .analytics-dashboard {
    padding: 24px;
  }
  
  .dashboard-title {
    font-size: 24px;
  }
  
  .stats-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card {
    padding: 24px 20px;
    gap: 16px;
  }
  
  .stat-icon {
    font-size: 36px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .analytics-empty {
    padding: 60px 24px;
  }
  
  .empty-illustration {
    font-size: 56px;
  }
  
  /* Creation Form Mobile */
  .creation-hero {
    padding: 32px 24px;
  }
  
  .creation-title {
    font-size: 32px;
  }
  
  .creation-subtitle {
    font-size: 18px;
  }
  
  .creation-form-container {
    padding: 32px 24px;
  }
  
  .form-section {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .form-icon {
    width: 56px;
    height: 56px;
    font-size: 20px;
    align-self: center;
  }
  
  .form-section-title {
    font-size: 20px;
    text-align: center;
  }
  
  .form-section-subtitle {
    text-align: center;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .action-info {
    justify-content: center;
  }
  
  .creation-submit-btn {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .input-prefix {
    font-size: 14px;
    padding: 16px 16px;
  }
  
  .enhanced-input {
    font-size: 16px;
  }
}
