/* Slash Dashboard - Additional Styles */

/* 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;
}

/* Smooth transitions */
* {
  transition-property: background-color, border-color, color, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-in-out;
}

/* Card hover effect */
.bg-gray-800:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Checkbox custom styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #4b5563;
  border-radius: 0.375rem;
  background-color: #374151;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

/* Button states */
button:active {
  transform: scale(0.98);
}

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

/* Dropdown arrow rotation */
.rotate-180 {
  transform: rotate(180deg);
}

/* Password input eye icon space (if needed later) */
input[type="password"] {
  padding-right: 2.5rem;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .text-4xl {
    font-size: 1.875rem;
  }
  
  .p-6 {
    padding: 1rem;
  }
  
  .gap-6 {
    gap: 1rem;
  }
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#accounts-grid > div {
  animation: fadeIn 0.3s ease-out forwards;
}

#accounts-grid > div:nth-child(1) { animation-delay: 0.05s; }
#accounts-grid > div:nth-child(2) { animation-delay: 0.1s; }
#accounts-grid > div:nth-child(3) { animation-delay: 0.15s; }
#accounts-grid > div:nth-child(4) { animation-delay: 0.2s; }
