/* FlazCloud Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Flash message animations */
.flash-message {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status badge colors */
.badge-active    { background: #dcfce7; color: #15803d; }
.badge-pending   { background: #fef9c3; color: #a16207; }
.badge-suspended { background: #ffedd5; color: #c2410c; }
.badge-banned    { background: #fee2e2; color: #dc2626; }
.badge-terminated{ background: #f1f5f9; color: #64748b; }
.badge-paid      { background: #dcfce7; color: #15803d; }
.badge-unpaid    { background: #fef9c3; color: #a16207; }
.badge-cancelled { background: #fee2e2; color: #dc2626; }

/* Table hover */
.data-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Card hover effect */
.hover-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hover-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

/* Admin sidebar active link */
.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sidebar-link.active svg {
  color: #93c5fd;
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(2px);
}

/* Form focus ring consistency */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 0;
  border-color: #3b82f6;
}

/* Button loading state */
button[data-loading="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Line clamp utilities */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Monospace number display */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
}
