@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  font-family: 'Inter', sans-serif;
  background-color: #111827;
}

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

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Table styling */
table {
  border-collapse: collapse;
  width: 100%;
}

th {
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
/* Form elements */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    cursor: pointer;
    border-radius: 50%;
}

/* Button transitions */
button {
  transition: all 0.2s ease;
}

/* Toggle switches */
.toggle-checkbox:checked {
    right: 0;
    border-color: #10b981;
}

.toggle-checkbox:checked + .toggle-label {
    background-color: #10b981;
}

/* Form inputs */
select, input[type="number"], input[type="text"] {
    transition: border-color 0.2s ease;
}

select:focus, input[type="number"]:focus, input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

/* Quick execution buttons */
.quick-side button {
    transition: all 0.2s ease;
}

.quick-side button.bg-green-900 {
    background-color: #14532d !important;
    color: #4ade80 !important;
}

.quick-side button.bg-red-900 {
    background-color: #7f1d1d !important;
    color: #f87171 !important;
}
/* Card animations */
.bg-gray-800 {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bg-gray-800:hover {
  transform: translateY(-2px);
}
.bg-gray-800:hover {
  background-color: #1f2937;
}

/* Status indicators */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.status-active {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
.status-paused {
  background-color: #f59e0b;
}

.status-stopped {
  background-color: #ef4444;
}