/* Clean Job Hunt Log - Essential Styles Only */

:root {
  /* Light Mode Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  
  /* Text colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-400);
  
  /* Border colors */
  --border-light: var(--gray-200);
  
  /* Background colors */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  
  /* Font sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  
  /* Border radius */
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  
  /* Shadows */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Z-index */
  --z-tooltip: 1000;
}

/* Dark Mode */
[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --success: #34d399;
  --danger: #f87171;
  --gray-50: #1f2937;
  --gray-100: #374151;
  --gray-200: #4b5563;
  --gray-300: #6b7280;
  --gray-400: #9ca3af;
  --gray-600: #d1d5db;
  --gray-700: #e5e7eb;
  --gray-800: #f3f4f6;
  --gray-900: #f9fafb;
  --white: #111827;
  
  /* Text colors - Fixed for dark mode */
  --text-primary: var(--gray-900); /* Light text on dark background */
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-400);
  
  /* Border colors */
  --border-light: var(--gray-200);
  
  /* Background colors - Fixed for dark mode */
  --bg-primary: var(--gray-50); /* Dark background */
  --bg-secondary: var(--gray-100);
  --bg-tertiary: var(--gray-200);
  
  /* Shadows */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Demo badge */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse-demo 2s ease-in-out infinite;
}

.demo-icon {
  font-size: 1rem;
}

@keyframes pulse-demo {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
}

/* Dark mode demo badge */
[data-theme="dark"] .demo-badge {
  background: linear-gradient(135deg, #4c63d2 0%, #5a4fcf 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: pulse-demo-dark 2s ease-in-out infinite;
}

@keyframes pulse-demo-dark {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
}

/* Footer */
.footer {
  margin-top: var(--space-12);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--gray-200);
  background: var(--bg-secondary);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.footer p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.github-link:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.github-icon {
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.github-link:hover .github-icon {
  transform: scale(1.1);
}

.github-text {
  color: var(--text-primary);
}

/* Dark mode footer */
[data-theme="dark"] .footer {
  border-top-color: var(--gray-200);
  background: var(--bg-secondary);
}

[data-theme="dark"] .footer p {
  color: var(--text-secondary);
}

[data-theme="dark"] .github-link {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--text-primary);
}

[data-theme="dark"] .github-link:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

[data-theme="dark"] .github-icon {
  color: var(--text-primary);
}

[data-theme="dark"] .github-text {
  color: var(--text-primary);
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .github-link {
    padding: var(--space-2) var(--space-4);
  }
  
  .github-text {
    display: none; /* Hide text on mobile, show only icon */
  }
  
  .github-link {
    padding: var(--space-2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
}

/* Smooth transitions for theme changes */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Specific elements that need smooth transitions */
body, .container, .header, .stats, .controls, .table-container, .job-form, .btn, .search-container, .pagination-info, .simple-pagination, .stat-card, table, th, td, .status-badge {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-8);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: var(--space-8);
  color: var(--gray-800);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
  color: var(--gray-900);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.header p {
  font-size: 1.1rem;
  color: var(--gray-700);
  opacity: 0.9;
}

/* Dark mode header - keep white text */
[data-theme="dark"] .header {
  color: #ffffff; /* Pure white, not CSS variable */
}

[data-theme="dark"] .header h1 {
  color: #ffffff; /* Pure white, not CSS variable */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .header p {
  color: #ffffff; /* Pure white, not CSS variable */
  opacity: 0.9;
}

/* Demo indicator */
.demo-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-4) auto 0;
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  max-width: 400px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: default;
}

.demo-indicator:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.demo-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.demo-text {
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  flex: 1;
}

/* Dark mode demo indicator */
[data-theme="dark"] .demo-indicator {
  background: linear-gradient(135deg, #4c63d2 0%, #5a4fcf 100%);
  box-shadow: 0 4px 12px rgba(76, 99, 210, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .demo-badge {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Responsive demo indicator */
@media (max-width: 768px) {
  .demo-indicator {
    margin: var(--space-3) var(--space-4) 0;
    padding: var(--space-2) var(--space-4);
    max-width: none;
  }
  
  .demo-text {
    font-size: var(--font-size-xs);
  }
  
  .demo-badge {
    padding: var(--space-1) var(--space-2);
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .demo-indicator {
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
  }
  
  .demo-text {
    text-align: center;
    line-height: 1.3;
  }
}

/* Actions */
.actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  justify-content: center;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  position: relative;
  overflow: hidden;
}

.dark-mode-toggle svg {
  transition: all 0.3s ease;
  color: currentColor;
}

.dark-mode-toggle:hover svg {
  color: var(--primary);
}

/* Buttons */
.btn {
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(99, 102, 241, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-700);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline {
  background: transparent;
  color: var(--gray-600);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
  color: var(--gray-700);
  border-color: var(--gray-400);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Dark mode outline button - lighter colors */
[data-theme="dark"] .btn-outline {
  color: var(--gray-200);
  border-color: var(--gray-500);
  background: transparent;
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--gray-700);
  color: var(--gray-100);
  border-color: var(--gray-400);
}

/* Secondary button improvements for dark mode */
[data-theme="dark"] .btn-secondary {
  background: var(--gray-700);
  color: var(--gray-200);
  border-color: var(--gray-600);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--gray-600);
  border-color: var(--gray-500);
  color: var(--gray-100);
}

/* Form button container */
.job-form .form-group:last-of-type {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
  grid-column: 1 / -1; /* Span all columns */
}

/* Update job form buttons (inline edit) */
.job-form button[type="submit"],
.job-form button[type="button"] {
  min-width: 120px;
  height: 42px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

/* Ensure consistent button sizing for all form buttons */
.job-form .btn {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* Button icons */
.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Button loading state */
.btn.loading {
  pointer-events: none;
}

.btn.loading .btn-text {
  opacity: 0;
}

.btn.loading .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* Statistics */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid transparent; /* Transparent border for consistency */
  box-shadow: var(--shadow-lg);
}

.stat-card h3 {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card span {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
}

/* Form */
.job-form {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-8);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-weight: 500;
  color: var(--gray-700);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.form-group input,
.form-group textarea {
  padding: var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced select box styling - complete reset */
.form-group select {
  /* Reset all browser defaults */
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  -ms-appearance: none !important;
  
  /* Basic styling */
  padding: var(--space-3);
  padding-right: calc(var(--space-3) + 28px); /* Extra space for custom arrow */
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s ease;
  
  /* Custom arrow - single SVG */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

/* Force remove ALL browser default arrows and indicators */
.form-group select::-ms-expand {
  display: none !important;
}

.form-group select::-webkit-appearance {
  -webkit-appearance: none !important;
}

.form-group select::-moz-appearance {
  -moz-appearance: none !important;
}

/* Remove any additional browser-specific elements */
.form-group select::-webkit-inner-spin-button,
.form-group select::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.form-group select::-webkit-calendar-picker-indicator {
  -webkit-appearance: none !important;
}

.form-group select::-webkit-list-button {
  -webkit-appearance: none !important;
}

.form-group select::-webkit-dropdown-arrow {
  display: none !important;
}

/* Additional Firefox fixes */
@-moz-document url-prefix() {
  .form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
  }
}

.form-group select:hover {
  border-color: var(--gray-300);
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark mode select - ensure single arrow */
[data-theme="dark"] .form-group select {
  background: #ffffff;
  color: #111827;
  border-color: var(--gray-300);
  /* Ensure custom arrow is maintained */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

[data-theme="dark"] .form-group select:hover {
  border-color: var(--gray-400);
}

[data-theme="dark"] .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .form-group label {
  color: var(--gray-700);
}

[data-theme="dark"] .job-form .form-group:last-of-type {
  border-top-color: var(--gray-200);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
  font-style: italic;
  opacity: 0.8;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: var(--gray-400);
  opacity: 0.8;
}

/* Enhanced checkbox styling */
.form-group input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  position: relative;
  margin-right: var(--space-2);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.form-group input[type="checkbox"]:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-group input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.form-group input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-group input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Checkbox label styling */
.form-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
  gap: var(--space-2);
}

/* Dark mode checkbox */
[data-theme="dark"] .form-group input[type="checkbox"] {
  background: #ffffff;
  border-color: var(--gray-300);
}

[data-theme="dark"] .form-group input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

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

/* Table */
.table-container {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent; /* Transparent border for consistency */
  box-shadow: var(--shadow-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Column widths for better space utilization */
th:nth-child(1), td:nth-child(1) { width: 14%; } /* Company */
th:nth-child(2), td:nth-child(2) { width: 16%; } /* Position */
th:nth-child(3), td:nth-child(3) { width: 10%; } /* Status */
th:nth-child(4), td:nth-child(4) { width: 10%; } /* Platform */
th:nth-child(5), td:nth-child(5) { width: 18%; } /* Notes/Tags */
th:nth-child(6), td:nth-child(6) { width: 12%; } /* Date Applied */
th:nth-child(7), td:nth-child(7) { width: 8%; }  /* Favorite */
th:nth-child(8), td:nth-child(8) { width: 16%; } /* Actions */

thead {
  background: var(--gray-50);
}

th {
  padding: var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}

td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

/* Action buttons container */
td:last-child {
  text-align: center;
  white-space: nowrap;
  min-width: 120px;
}

/* Favorite column alignment */
td:nth-last-child(2) {
  text-align: center;
}

tbody tr:hover {
  background: var(--gray-50);
}

/* Status select */
td select {
  padding: var(--space-2);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.875rem;
}

td select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Action buttons */
.edit-btn,
.delete-btn,
.favorite-btn,
.url-btn {
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin-right: var(--space-2);
  padding: var(--space-2);
  position: relative;
}

.edit-btn svg,
.delete-btn svg,
.url-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0;
}

.favorite-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
}

.edit-btn {
  background: var(--primary);
  color: var(--white);
}

.edit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.delete-btn {
  background: var(--danger);
  color: var(--white);
}

.delete-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.url-btn {
  background: var(--success);
  color: var(--white);
}

.url-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn:hover {
  background: var(--gray-100);
  transform: scale(1.1);
}

.favorite-btn svg {
  transition: all 0.2s ease;
}

.favorite-btn:hover svg {
  transform: scale(1.1);
}

/* Favorite icon styling - filled vs unfilled */
.favorite-btn svg[fill="currentColor"] {
  color: #fbbf24; /* Golden yellow for filled favorites */
}

.favorite-btn:hover svg[fill="currentColor"] {
  color: #f59e0b; /* Darker golden yellow on hover */
}

.favorite-btn svg[fill="none"] {
  color: var(--gray-400); /* Light gray for unfilled favorites */
}

.favorite-btn:hover svg[fill="none"] {
  color: var(--gray-600); /* Darker gray on hover */
}

/* Dark mode favorite icon adjustments */
[data-theme="dark"] .favorite-btn svg[fill="currentColor"] {
  color: #fbbf24; /* Keep golden yellow in dark mode */
}

[data-theme="dark"] .favorite-btn:hover svg[fill="currentColor"] {
  color: #f59e0b; /* Keep darker golden yellow in dark mode */
}

[data-theme="dark"] .favorite-btn svg[fill="none"] {
  color: var(--gray-400); /* Light gray for unfilled in dark mode */
}

[data-theme="dark"] .favorite-btn:hover svg[fill="none"] {
  color: var(--gray-600); /* Darker gray for unfilled hover in dark mode */
}

/* ======================================
   COMPREHENSIVE DARK MODE STYLING
   ====================================== */

/* Cards and containers */
[data-theme="dark"] .stat-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
}

[data-theme="dark"] .stat-card h3 {
  color: var(--gray-700);
}

[data-theme="dark"] .stat-card span {
  color: var(--gray-900);
}

/* Table styling */
[data-theme="dark"] .table-container {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

[data-theme="dark"] table {
  background: var(--gray-100);
}

[data-theme="dark"] th {
  background: var(--gray-200);
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-300);
}

[data-theme="dark"] td {
  background: var(--gray-100);
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
}

[data-theme="dark"] tr:hover td {
  background: var(--gray-200);
}

/* Status badges */
[data-theme="dark"] .status-badge {
  color: var(--gray-900);
}

[data-theme="dark"] .status-applied {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

[data-theme="dark"] .status-interview {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .status-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

[data-theme="dark"] .status-offer {
  background: rgba(34, 197, 94, 0.2);
  color: #34d399;
}

[data-theme="dark"] .status-accepted {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

[data-theme="dark"] .status-none {
  background: rgba(107, 114, 128, 0.2);
  color: var(--gray-400);
}

/* Search and controls */
[data-theme="dark"] .search-container {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

[data-theme="dark"] .search-container input {
  background: var(--gray-100);
  color: var(--gray-900);
  border: none;
}

[data-theme="dark"] .search-container input::placeholder {
  color: var(--gray-300);
}

[data-theme="dark"] .clear-search {
  color: var(--gray-300);
}

[data-theme="dark"] .clear-search:hover {
  color: var(--gray-100);
  background: var(--gray-200);
}

/* Pagination buttons */
[data-theme="dark"] .pagination-btn {
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
  color: var(--gray-900);
}

[data-theme="dark"] .pagination-btn:hover:not(:disabled) {
  background: var(--gray-300);
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .pagination-btn:disabled {
  background: var(--gray-100);
  color: var(--gray-300);
  border-color: var(--gray-200);
}

/* Toast notifications */
[data-theme="dark"] .toast {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
}

[data-theme="dark"] .toast-title {
  color: var(--gray-900);
}

[data-theme="dark"] .toast-message {
  color: var(--gray-600);
}

[data-theme="dark"] .toast-close {
  color: var(--gray-300);
}

[data-theme="dark"] .toast-close:hover {
  color: var(--gray-100);
  background: var(--gray-200);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid transparent; /* Transparent border for consistency */
  box-shadow: var(--shadow-lg);
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* Dark mode empty state */
[data-theme="dark"] .empty-state {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
}

/* Icon Classes */
.icon-plus::before { content: '+'; }
.icon-refresh::before { content: '↻'; }
.icon-search::before { content: '🔍'; }
.icon-close::before { content: '×'; }
.icon-chevron-left::before { content: '‹'; }
.icon-chevron-right::before { content: '›'; }

/* Dark mode toggle icon animations */
.sun-icon, .moon-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dark-mode-toggle:hover .sun-icon {
  transform: translate(-50%, -50%) rotate(15deg) scale(1.15);
}

.dark-mode-toggle:hover .moon-icon {
  transform: translate(-50%, -50%) rotate(-15deg) scale(1.15);
}

/* Enhanced smooth icon transitions when toggling themes */
[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(180deg) scale(0.7);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-180deg) scale(0.7);
}

/* Dark mode toggle button hover effect */
.dark-mode-toggle {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dark-mode-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .dark-mode-toggle:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Pulse animation for dark mode toggle when active */
.dark-mode-toggle.active {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
}

/* Search icon styling */
.icon-search {
  color: var(--gray-500);
  margin-right: var(--space-2);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

[data-theme="dark"] .icon-search {
  color: var(--gray-300);
}

/* Responsive */
@media (max-width: 1200px) {
  .table-container {
    overflow-x: auto;
  }
  
  table {
    min-width: 1200px;
    table-layout: auto; /* Allow flexible column widths when scrolling */
  }
  
  /* Set minimum widths for columns when scrolling */
  th:nth-child(1), td:nth-child(1) { min-width: 140px; } /* Company */
  th:nth-child(2), td:nth-child(2) { min-width: 160px; } /* Position */
  th:nth-child(3), td:nth-child(3) { min-width: 100px; } /* Status */
  th:nth-child(4), td:nth-child(4) { min-width: 100px; } /* Platform */
  th:nth-child(5), td:nth-child(5) { min-width: 180px; } /* Notes/Tags */
  th:nth-child(6), td:nth-child(6) { min-width: 130px; } /* Date Applied */
  th:nth-child(7), td:nth-child(7) { min-width: 80px; }  /* Favorite */
  th:nth-child(8), td:nth-child(8) { min-width: 160px; } /* Actions */
}

@media (max-width: 768px) {
  .container {
    padding: var(--space-4);
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }
  
  .job-form {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  th, td {
    padding: var(--space-3);
    font-size: 0.875rem;
  }
  
  /* Hide less important columns on mobile */
  th:nth-child(4), td:nth-child(4), /* Platform */
  th:nth-child(5), td:nth-child(5) { /* Notes */
    display: none;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: var(--space-3);
  }
  
  .header h1 {
    font-size: 1.75rem;
  }
  
  .header p {
    font-size: var(--font-size-sm);
  }
  
  .actions {
    gap: var(--space-2);
  }
  
  .table-container {
    margin: 0 -var(--space-3);
    border-radius: 0;
  }
  
  table {
    min-width: 1000px;
    table-layout: auto; /* Allow flexible column widths when scrolling */
  }
  
  /* Adjust column widths for smaller screens with fewer columns */
  th:nth-child(1), td:nth-child(1) { min-width: 160px; } /* Company - wider */
  th:nth-child(2), td:nth-child(2) { min-width: 180px; } /* Position - wider */
  th:nth-child(6), td:nth-child(6) { min-width: 120px; } /* Date Applied - wider */
  th:nth-child(7), td:nth-child(7) { min-width: 100px; } /* Favorite - wider */
  th:nth-child(8), td:nth-child(8) { min-width: 180px; } /* Actions - wider */
  
  th, td {
    padding: var(--space-2);
    font-size: var(--font-size-xs);
  }
  
  /* Hide more columns on very small screens */
  th:nth-child(3), td:nth-child(3), /* Status */
  th:nth-child(4), td:nth-child(4), /* Platform */
  th:nth-child(5), td:nth-child(5) { /* Notes */
    display: none;
  }
  
  /* Make action buttons smaller */
  .edit-btn, .delete-btn, .favorite-btn, .url-btn {
    padding: var(--space-1);
    font-size: var(--font-size-xs);
  }
  
  .edit-btn svg, .delete-btn svg, .favorite-btn svg, .url-btn svg {
    width: 12px;
    height: 12px;
  }
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-applied {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.status-interview {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.status-offer {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-accepted {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}


/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

.spinner-sm {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}


.spinner-xl {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* Primary colored spinner for table loading */
.spinner-primary {
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top: 3px solid var(--primary);
}


@keyframes rotate-refresh {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Icon-only buttons */
.btn:has(.icon-refresh),
.btn:has(.sun-icon),
.btn:has(.moon-icon) {
  padding: var(--space-2);
  min-width: 40px;
  justify-content: center;
}

/* Refresh button animation - override general button loading */
.refresh-btn.loading::after {
  display: none; /* Hide the general button spinner */
}

.refresh-btn .icon-refresh {
  transition: transform 0.3s ease;
}

.refresh-btn.loading .icon-refresh {
  animation: rotate-refresh 1s linear infinite;
}

.refresh-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn.loading {
  position: relative;
}

.btn.loading .btn-text {
  opacity: 0;
}

.btn.loading .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* Button loading states */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.btn.loading .btn-text {
  opacity: 0.5;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form submission loading state */
.job-form.loading {
  opacity: 0.8;
  pointer-events: none;
}

.job-form.loading .btn {
  opacity: 0.6;
}

.job-form.loading .form-group input,
.job-form.loading .form-group select,
.job-form.loading .form-group textarea {
  opacity: 0.7;
  background-color: var(--gray-50);
}

[data-theme="dark"] .job-form.loading .form-group input,
[data-theme="dark"] .job-form.loading .form-group select,
[data-theme="dark"] .job-form.loading .form-group textarea {
  background-color: var(--gray-100);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  min-width: 300px;
  z-index: var(--z-tooltip);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* Dark mode toast borders */
[data-theme="dark"] .toast.success {
  border-left: 4px solid #34d399;
}

[data-theme="dark"] .toast.error {
  border-left: 4px solid #f87171;
}

.toast-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.toast-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-title {
  font-weight: 600;
  color: var(--text-primary);
}

.toast-message {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.toast-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: var(--font-size-lg);
  line-height: 1;
  padding: var(--space-1);
}

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

/* Sortable table headers */
th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
  padding-right: 3rem; /* Increased space for sort icon */
}

th.sortable:hover {
  background: var(--gray-100);
}

th.sortable::after {
  content: '↕';
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  font-size: var(--font-size-sm);
  font-weight: normal;
  line-height: 1;
  color: var(--gray-400);
  z-index: 1;
}

th.sortable.asc::after {
  content: '↑';
  opacity: 1;
  color: var(--primary);
}

th.sortable.desc::after {
  content: '↓';
  opacity: 1;
  color: var(--primary);
}

/* Dark mode sortable headers */
[data-theme="dark"] th.sortable {
  background: var(--gray-200);
  color: var(--gray-900);
}

[data-theme="dark"] th.sortable:hover {
  background: var(--gray-300);
}

[data-theme="dark"] th.sortable::after {
  color: var(--gray-400);
  opacity: 0.6;
}

[data-theme="dark"] th.sortable.asc::after,
[data-theme="dark"] th.sortable.desc::after {
  color: var(--primary);
}

/* Search and Pagination Controls */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  min-width: 300px;
  transition: border-color 0.2s ease;
}

.search-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
  color: var(--text-tertiary);
  margin-right: var(--space-2);
  flex-shrink: 0;
}

#search-input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

#search-input::placeholder {
  color: var(--text-tertiary);
}

.clear-search {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  margin-left: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.clear-search:hover {
  color: var(--text-primary);
  background: var(--gray-100);
}

.clear-search .icon-close {
  font-size: 18px;
  font-weight: bold;
}

.pagination-info {
  color: var(--gray-700);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-weight: 500;
}

/* Dark mode pagination info - keep white text */
[data-theme="dark"] .pagination-info {
  color: #ffffff; /* Pure white, not CSS variable */
}

.simple-pagination {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.pagination-btn {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 500;
  min-height: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  background: var(--gray-100);
  color: var(--gray-600);
  border-color: var(--gray-200);
}

.pagination-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-info {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
  }
  
  .simple-pagination {
    gap: var(--space-1);
  }
  
  .pagination-btn {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
    min-height: 28px;
  }
}



/* Table loading state */
.table-container {
  position: relative;
}

.table-loading {
  position: absolute;
  top: 0; /* Start from the very top of the table container */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(249, 250, 251, 0.95); /* Subtle grayish-white */
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 231, 235, 0.3);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  min-height: 300px; /* Increased height to ensure full coverage */
  padding: var(--space-8); /* Add padding for better spacing */
}

/* Dark mode loading overlay */
[data-theme="dark"] .table-loading {
  background: rgba(31, 41, 55, 0.95); /* Dark grayish background */
  backdrop-filter: blur(2px);
  border: 1px solid rgba(75, 85, 99, 0.3); /* Darker border */
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.3); /* Darker shadow */
}

[data-theme="dark"] .table-loading-text {
  color: #ffffff; /* Pure white text on dark background */
}

.table-loading .spinner {
  margin-bottom: var(--space-3);
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.table-loading-text {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  font-weight: 500;
  letter-spacing: 0.025em;
  margin-top: var(--space-1);
}

/* Enhanced spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}