@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-sans), Arial, Helvetica, sans-serif;
}

/* Force header to always be white regardless of browser theme */
header {
  background-color: #ffffff !important;
  color: #111827 !important;
  color-scheme: light !important;
}

header * {
  color-scheme: light !important;
}

/* Custom scrollbar for the sidebar */
.sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: #CBD5E0 #EDF2F7;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 6px;
  background-color: #EDF2F7;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: #EDF2F7;
  border-radius: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: #A0AEC0;
}

/* Main content scrollbar */
.main-content-scroll {
  scrollbar-width: thin;
  scrollbar-color: #CBD5E0 #F7FAFC;
}

.main-content-scroll::-webkit-scrollbar {
  width: 8px;
  background-color: #F7FAFC;
}

.main-content-scroll::-webkit-scrollbar-track {
  background: #F7FAFC;
}

.main-content-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 4px;
}

.main-content-scroll::-webkit-scrollbar-thumb:hover {
  background: #A0AEC0;
}

/* Force all scrollbars to be light */
::-webkit-scrollbar {
  background-color: #F7FAFC;
}

::-webkit-scrollbar-thumb {
  background-color: #CBD5E0;
}

/* Prevent horizontal scrolling */
.no-horizontal-scroll {
  overflow-x: hidden;
}

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

/* Animation for dropdown menus */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-enter {
  animation: slideDown 0.2s ease-out;
}

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

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

/* Custom focus styles */
.focus-ring:focus {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Card hover effects */
.card-hover {
  transition: all 0.2s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout utilities */
.full-height {
  height: 100vh;
}

.flex-grow-1 {
  flex-grow: 1;
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Ensure tables are always readable */
table {
  background-color: white;
  color: #171717;
}

table thead {
  background-color: #f9fafb;
  color: #374151;
}

table tbody tr {
  background-color: white;
  color: #171717;
}

table tbody tr:hover {
  background-color: #f9fafb;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .mobile-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .mobile-text-sm {
    font-size: 0.875rem;
  }
}

/* Improved focus states */
.focus-visible:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
  border-radius: 4px;
}


