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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

/* Card styles */
#job-card {
  touch-action: none;
  user-select: none;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform;
}

#job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Swipe indicators */
#swipe-left,
#swipe-right {
  transition: opacity 0.2s ease;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
button {
  transition: all 0.3s ease;
  outline: none;
  border: none;
  cursor: pointer;
}

button:active {
  transform: scale(0.95);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Search section */
#search-section {
  animation: fadeIn 0.5s ease;
}

#swipe-section {
  animation: slideUp 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  ring: 2px;
  ring-color: #667eea;
  border-color: #667eea;
}

/* Logo animation */
.logo-icon {
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Card gradient overlay */
.card-gradient {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  body {
    padding: 10px;
  }
  
  #job-card {
    font-size: 14px;
  }
  
  button {
    width: 50px !important;
    height: 50px !important;
  }
  
  button i {
    font-size: 18px !important;
  }
}

/* Pulse animation for action buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

.action-button {
  animation: pulse 2s ease infinite;
}

/* Card description max height */
#card-description {
  max-height: 300px;
  overflow-y: auto;
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Progress bar */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease;
}
