@import "tailwindcss";

@theme {
  --color-primary: #E65100;
  --color-primary-dark: #BF360C;
  --color-secondary: #1A237E;
  --color-secondary-light: #3949AB;
  --color-accent: #FF8F00;
  --color-accent-light: #FFB300;
  --color-text: #212121;
  --color-gray: #757575;
  --color-gray-light: #9E9E9E;
  --color-card: #FAFAFA;
  --color-border: #E0E0E0;
  --font-family-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  background-color: #FFFFFF;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
  background: #F5F5F5;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #9E9E9E;
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(230, 81, 0, 0.3); }
  50% { box-shadow: 0 0 40px rgba(230, 81, 0, 0.5); }
}

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

.animate-fade-in {
  animation: fade-in 0.4s ease-out forwards;
}

.animate-slide-in-left {
  animation: slide-in-left 0.3s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(230, 81, 0, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--color-secondary-light);
  box-shadow: 0 10px 15px -3px rgba(26, 35, 126, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-ghost {
  color: var(--color-gray);
  font-weight: 500;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  background: transparent;
}

.btn-ghost:hover {
  background-color: #F5F5F5;
  color: var(--color-text);
}

/* Input styles */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background-color: white;
  color: var(--color-text);
  transition: all 0.2s;
}

.input-field::placeholder {
  color: var(--color-gray-light);
}

.input-field:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(230, 81, 0, 0.2);
  border-color: var(--color-primary);
}

/* Card styles */
.card {
  background-color: white;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-hover {
  background-color: white;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
}

.card-hover:hover {
  border-color: rgba(230, 81, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background-color: #DCFCE7;
  color: #15803D;
}

.badge-warning {
  background-color: #FEF3C7;
  color: #B45309;
}

.badge-error {
  background-color: #FEE2E2;
  color: #DC2626;
}

.badge-info {
  background-color: #DBEAFE;
  color: #1D4ED8;
}

.badge-neutral {
  background-color: #F3F4F6;
  color: #4B5563;
}

/* Table styles */
.table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
}

.table-header {
  background-color: var(--color-card);
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-row {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.15s;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background-color: rgba(250, 250, 250, 0.5);
}

.table-cell {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(to right, #E5E7EB, #F3F4F6, #E5E7EB);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
