/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #1e293b;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  --sidebar-width: 320px;
  --sidebar-collapsed-width: 84px;
  --header-height: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.loading-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Layout */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transition: width 0.25s ease, transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo i {
  font-size: 1.5rem;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-content {
  padding: 1.5rem;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.admin-action-panel .admin-action-grid {
  display: grid;
  gap: 0.625rem;
}

.admin-action-panel .btn {
  justify-content: flex-start;
  text-align: left;
  position: relative;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Filters */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.filter-label:hover {
  color: var(--primary-color);
}

.filter-checkbox {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.2s ease;
}

.filter-checkbox:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.filter-checkbox:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Search */
.search-container {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  background: var(--bg-secondary);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-secondary);
  transition: margin-left 0.25s ease;
}

body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar-header {
  padding: 1rem 0.6rem;
}

body.sidebar-collapsed .logo {
  justify-content: center;
  width: 100%;
}

body.sidebar-collapsed .logo span {
  display: none;
}

body.sidebar-collapsed .sidebar-content {
  padding: 0.8rem 0.45rem;
}

body.sidebar-collapsed .sidebar-section:not(.admin-action-panel) {
  display: none;
}

body.sidebar-collapsed .admin-action-panel h3 {
  display: none;
}

body.sidebar-collapsed .admin-action-panel .admin-action-grid {
  gap: 0.5rem;
}

body.sidebar-collapsed .admin-action-panel .btn {
  width: 54px;
  height: 46px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  font-size: 0;
}

body.sidebar-collapsed .admin-action-panel .btn i {
  margin: 0;
  font-size: 1rem;
}

body.sidebar-collapsed .admin-action-panel .btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #fff;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity 0.15s ease;
  z-index: 1300;
}

body.sidebar-collapsed .admin-action-panel .btn:hover::after,
body.sidebar-collapsed .admin-action-panel .btn:focus-visible::after {
  opacity: 1;
}

/* Header */
.top-header {
  background: var(--bg-primary);
  padding: 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-left h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.date-display {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

.desktop-open-history-bar {
  margin: 1.25rem 2rem 0;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.96)),
    var(--bg-primary);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.9rem;
}

.desktop-open-history-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.desktop-open-history-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}

.desktop-open-history-last {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.desktop-open-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.desktop-open-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.desktop-open-history-chip strong {
  color: var(--text-primary);
  font-weight: 700;
}

.desktop-open-history-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Progress Section */
.progress-section {
  background: var(--bg-primary);
  margin: 2rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.progress-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-percentage {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 6px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-stats {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* View Tabs */
.view-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.view-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.view-tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.view-tab i {
  font-size: 0.875rem;
}

/* Website Container */
.website-container {
  padding: 0 2rem 2rem;
  display: grid;
  gap: 1.5rem;
}

/* Website List View */
.website-list-container {
  padding: 0 2rem 2rem;
  background: var(--bg-primary);
}

.list-header {
  display: grid;
  grid-template-columns: 150px 1fr 100px 100px 120px 120px 100px 120px;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.list-body {
  background: var(--bg-primary);
}

.list-row {
  display: grid;
  grid-template-columns: 150px 1fr 100px 100px 120px 120px 100px 120px;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  transition: background 0.2s ease;
}

.list-row:hover {
  background: var(--bg-secondary);
}

.list-col {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  word-break: break-word;
}

.list-url {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.list-url:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.perf-score {
  font-weight: 700;
  font-size: 1rem;
}

.no-data {
  color: var(--text-muted);
  font-style: italic;
}

.lcp-time {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.status-badge.issue {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.mobile-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  white-space: nowrap;
}

.mobile-status-chip.completed {
  color: var(--success-color);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.mobile-status-chip.issue {
  color: var(--danger-color);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.mobile-status-chip.pending {
  color: var(--warning-color);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.actions-col {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

.list-row .site-name-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}

.btn-small {
  padding: 0.5rem;
  font-size: 0.875rem;
}

/* Responsive List View */
@media (max-width: 1400px) {
  .list-header,
  .list-row {
    grid-template-columns: 120px 1fr 80px 80px 100px 100px 90px 100px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1200px) {
  .list-header,
  .list-row {
    grid-template-columns: 100px 1fr 70px 70px 90px 90px 80px 90px;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .list-header {
    font-size: 0.75rem;
  }
}

/* Website Cards */
.website-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.website-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.website-card.completed {
  border-left: 4px solid var(--success-color);
}

.website-card.issue {
  border-left: 4px solid var(--danger-color);
}

.website-card.pending {
  border-left: 4px solid var(--warning-color);
}

.website-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.website-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.website-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.website-name i {
  color: var(--primary-color);
}

.website-url {
  color: var(--primary-color);
  font-size: 0.875rem;
  word-break: break-all;
  text-decoration: none;
  transition: color 0.2s ease;
}

.website-url:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.website-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.page-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.website-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
}

.status-toggle.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success-color);
  color: var(--success-color);
}

.status-toggle.issue {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.website-body {
  padding: 1.5rem;
}

.comment-section {
  margin-bottom: 1.5rem;
}

.comment-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.comment-box {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
}

.comment-box:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Media Section */
.media-section {
  margin-bottom: 1.5rem;
}

.media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.media-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-count {
  background: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.file-upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.upload-button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.media-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
}

.media-item:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.media-remove:hover {
  background: var(--danger-color);
  transform: scale(1.1);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.view-pages-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--secondary-color), #059669);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.view-pages-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal#admin-login-modal {
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
}

.modal#admin-login-modal .modal-content {
  max-width: 400px;
  width: 90%;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow: auto;
}

.modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.reports-calendar-wrapper {
  display: grid;
  gap: 1rem;
}

.reports-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.reports-calendar-toolbar h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reports-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.reports-calendar-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.reports-calendar-day-pad {
  min-height: 58px;
}

.reports-calendar-day {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  min-height: 58px;
  padding: 0.4rem 0.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reports-calendar-day:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.reports-calendar-day.is-selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.reports-calendar-day.is-today {
  background: rgba(99, 102, 241, 0.06);
}

.reports-calendar-day-number {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reports-calendar-mark {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.reports-calendar-mark.has-report {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #059669;
}

.reports-calendar-mark.is-missed {
  background: transparent;
  border-style: dashed;
}

.reports-calendar-day.has-report {
  background: rgba(16, 185, 129, 0.05);
}

.reports-calendar-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.reports-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.reports-calendar-empty-dot {
  width: 12px;
  height: 12px;
  border: 1px dashed var(--border-color);
  border-radius: 999px;
  display: inline-block;
}

.reports-day-details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  padding: 0.9rem;
}

.reports-day-details h5 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.reports-day-list {
  display: grid;
  gap: 0.65rem;
}

.report-day-card {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 0.8rem;
}

.report-day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.report-day-card-header strong {
  color: var(--text-primary);
}

.report-day-card-header span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.report-day-card-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.report-day-empty {
  padding: 1rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--bg-primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  transform: translateX(100%);
  animation: slideIn 0.3s ease forwards;
}

.toast.success {
  border-left-color: var(--success-color);
}

.toast.error {
  border-left-color: var(--danger-color);
}

.toast.warning {
  border-left-color: var(--warning-color);
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.toast-icon {
  font-size: 1.25rem;
}

.toast.success .toast-icon {
  color: var(--success-color);
}

.toast.error .toast-icon {
  color: var(--danger-color);
}

.toast.warning .toast-icon {
  color: var(--warning-color);
}

.toast-message {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-toggle {
    display: inline-flex;
  }
  
  .website-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-right {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .date-display {
    width: auto;
    text-align: left;
  }

  .desktop-open-history-bar {
    margin: 1rem 1rem 0;
    padding: 1rem;
  }

  .desktop-open-history-main {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-action-panel .btn {
    justify-content: center;
    text-align: center;
  }

  .reports-calendar-grid {
    gap: 0.35rem;
  }

  .reports-calendar-day {
    min-height: 52px;
    padding: 0.3rem;
  }

  .reports-calendar-toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .progress-section {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .website-container {
    padding: 0 1rem 1rem;
  }
  
  .website-header {
    padding: 1rem;
  }
  
  .website-body {
    padding: 1rem;
  }
  
  .website-title {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .website-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .view-pages-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
  
  .toast {
    min-width: 280px;
    margin: 0 10px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.website-card {
  animation: fadeIn 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==================== API Configuration ==================== */
.api-config {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.api-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.api-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--bg-secondary);
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.api-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.api-help {
  font-size: 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.api-help:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-danger {
  background: var(--danger-color);
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-icon-danger {
  color: var(--danger-color);
}

.btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.website-actions-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ==================== Performance Section ==================== */
.performance-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.performance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.performance-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
}

.performance-title i {
  color: var(--primary-color);
}

.performance-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-check-performance,
.btn-view-performance,
.btn-mobile-checkup {
  padding: 8px 14px;
  font-size: 0.8125rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.btn-check-performance:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-view-performance:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

.btn-mobile-checkup:hover {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  transform: translateY(-1px);
}

.btn-check-performance:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.performance-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.score-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.score-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  font-family: 'Outfit', sans-serif;
}

.score-section-header i {
  color: var(--primary-color);
  font-size: 1rem;
}

.performance-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.score-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  transition: all 0.2s ease;
}

.score-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.score-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.score-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Manrope', sans-serif;
}

.score-metric {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

.score-item.no-data {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
}

/* ==================== Performance Modal ==================== */
.modal-large {
  max-width: 900px;
  width: 90vw;
}

.mobile-checkup-modal-content {
  max-width: 960px;
  width: 94vw;
}

.mobile-checkup-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-checkup-status {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  flex: 1;
  min-width: 280px;
}

.mobile-checkup-status p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.mobile-checkup-status a {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
}

.mobile-checkup-status a:hover {
  text-decoration: underline;
}

.mobile-checkup-help {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mobile-checkup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.mobile-checkup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
}

.mobile-preview-empty {
  padding: 1.5rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.mobile-preview-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.mobile-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.mobile-preview-site {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.mobile-preview-page {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.mobile-preview-url {
  color: var(--primary-color);
  font-size: 0.78rem;
  text-decoration: none;
  word-break: break-all;
}

.mobile-preview-url:hover {
  text-decoration: underline;
}

.mobile-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-preview-note {
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  background: var(--bg-secondary);
}

.performance-details {
  padding: 1rem 0;
}

.perf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.perf-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
}

.perf-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.perf-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.perf-score-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.perf-score-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.perf-score-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
}

.perf-score-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Manrope', sans-serif;
}

.perf-metric {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.perf-chart-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  height: 400px;
}

.perf-chart-container canvas {
  max-height: 100%;
}

.perf-device-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.perf-device-section:last-child {
  margin-bottom: 0;
}

.perf-device-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
}

.perf-device-title i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.perf-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.perf-metric-item {
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.perf-metric-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.perf-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.perf-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
}

/* ==================== Form Styles ==================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--bg-secondary);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.pages-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-url-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--bg-secondary);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.page-url-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.warning-text {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ==================== Import Tabs ==================== */
.import-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
}

.import-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.import-tab:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.import-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

.import-content {
  min-height: 200px;
}

/* ==================== Loading Spinner Small ==================== */
.loading-spinner-small {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

/* ==================== Enhanced Typography ==================== */
body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.logo span,
.website-name,
.performance-title {
  font-family: 'Outfit', sans-serif;
}

/* ==================== Responsive Updates ==================== */
@media (max-width: 768px) {
  .performance-scores {
    grid-template-columns: 1fr;
  }
  
  .perf-scores-grid {
    grid-template-columns: 1fr;
  }
  
  .perf-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .performance-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .performance-actions {
    width: 100%;
  }
  
  .btn-check-performance,
  .btn-view-performance,
  .btn-mobile-checkup {
    flex: 1;
    justify-content: center;
  }

  .mobile-checkup-toolbar {
    flex-direction: column;
  }

  .mobile-checkup-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-checkup-grid {
    grid-template-columns: 1fr;
  }

  .mobile-preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .perf-chart-container {
    height: 300px;
  }
  
  .perf-device-section {
    padding: 1rem;
  }
}
