@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 263.4 70% 50.4%;
  --primary-foreground: 210 40% 98%;
  --secondary: 263.4 70% 50.4%;
  --secondary-foreground: 210 40% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0a0b0f;
  background-image: linear-gradient(0deg, rgba(10,11,15,0.95) 0%, rgba(10,11,15,0.95) 100%), url('/grid.png');
  background-position: center;
  color: white;
  line-height: 1.5;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.3s ease-out;
}

/* Utilitaires */
.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-between: space-between;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-8 {
  padding-top: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-20 {
  margin-top: 5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.w-2 {
  width: 0.5rem;
}

.w-4 {
  width: 1rem;
}

.w-6 {
  width: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.w-full {
  width: 100%;
}

.h-1 {
  height: 0.25rem;
}

.h-2 {
  height: 0.5rem;
}

.h-4 {
  height: 1rem;
}

.h-6 {
  height: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-full {
  height: 100%;
}

.max-w-7xl {
  max-width: 80rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-xl {
  max-width: 36rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-gray-800\/50 {
  border-color: rgba(31, 41, 55, 0.5);
}

.border-primary\/10 {
  border-color: rgba(138, 75, 255, 0.1);
}

.border-primary\/20 {
  border-color: rgba(138, 75, 255, 0.2);
}

.border-primary\/30 {
  border-color: rgba(138, 75, 255, 0.3);
}

.border-emerald-500\/20 {
  border-color: rgba(16, 185, 129, 0.2);
}

.border-blue-500\/20 {
  border-color: rgba(59, 130, 246, 0.2);
}

.border-yellow-500\/20 {
  border-color: rgba(234, 179, 8, 0.2);
}

.border-red-500\/20 {
  border-color: rgba(239, 68, 68, 0.2);
}

.bg-\[\#0a0b0f\] {
  background-color: #0a0b0f;
}

.bg-\[\#13141c\]\/50 {
  background-color: rgba(19, 20, 28, 0.5);
}

.bg-\[\#1a1d2d\]\/50 {
  background-color: rgba(26, 29, 45, 0.5);
}

.bg-\[\#0d0e12\] {
  background-color: #0d0e12;
}

.bg-primary {
  background-color: hsl(263.4, 70%, 50.4%);
}

.bg-primary\/5 {
  background-color: rgba(138, 75, 255, 0.05);
}

.bg-primary\/10 {
  background-color: rgba(138, 75, 255, 0.1);
}

.bg-primary\/20 {
  background-color: rgba(138, 75, 255, 0.2);
}

.bg-emerald-500 {
  background-color: rgb(16, 185, 129);
}

.bg-emerald-500\/10 {
  background-color: rgba(16, 185, 129, 0.1);
}

.bg-blue-500 {
  background-color: rgb(59, 130, 246);
}

.bg-blue-500\/10 {
  background-color: rgba(59, 130, 246, 0.1);
}

.bg-yellow-500 {
  background-color: rgb(234, 179, 8);
}

.bg-yellow-500\/10 {
  background-color: rgba(234, 179, 8, 0.1);
}

.bg-red-500\/10 {
  background-color: rgba(239, 68, 68, 0.1);
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-white {
  color: white;
}

.text-gray-300 {
  color: rgb(209, 213, 219);
}

.text-gray-400 {
  color: rgb(156, 163, 175);
}

.text-gray-500 {
  color: rgb(107, 114, 128);
}

.text-gray-600 {
  color: rgb(75, 85, 99);
}

.text-primary {
  color: hsl(263.4, 70%, 50.4%);
}

.text-emerald-500 {
  color: rgb(16, 185, 129);
}

.text-blue-500 {
  color: rgb(59, 130, 246);
}

.text-yellow-500 {
  color: rgb(234, 179, 8);
}

.text-red-500 {
  color: rgb(239, 68, 68);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.min-w-0 {
  min-width: 0;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.opacity-0 {
  opacity: 0;
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:border-primary\/30 {
  border-color: rgba(138, 75, 255, 0.3);
}

.hover\:bg-primary:hover {
  background-color: hsl(263.4, 70%, 50.4%);
}

.hover\:bg-primary\/5:hover {
  background-color: rgba(138, 75, 255, 0.05);
}

.hover\:bg-primary\/10:hover {
  background-color: rgba(138, 75, 255, 0.1);
}

.hover\:bg-primary\/20:hover {
  background-color: rgba(138, 75, 255, 0.2);
}

.hover\:bg-\[\#13141c\]:hover {
  background-color: #13141c;
}

.hover\:bg-\[\#1a1d2d\]:hover {
  background-color: #1a1d2d;
}

.hover\:text-primary:hover {
  color: hsl(263.4, 70%, 50.4%);
}

.hover\:text-white:hover {
  color: white;
}

.hover\:border-primary\/20:hover {
  border-color: rgba(138, 75, 255, 0.2);
}

.hover\:border-primary\/30:hover {
  border-color: rgba(138, 75, 255, 0.3);
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Responsive */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:items-center {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }
}

/* ===== Admin Input Styles ===== */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1e2338;
    border: 1px solid rgba(138, 75, 255, 0.25);
    border-radius: 0.75rem;
    color: #e5e7eb;
    font-size: 0.875rem;
    transition: all 0.2s;
    outline: none;
}

.input:focus {
    border-color: #8a4bff;
    background: #252a42;
    box-shadow: 0 0 0 3px rgba(138, 75, 255, 0.15), 0 0 20px rgba(138, 75, 255, 0.05);
}

.input::placeholder {
    color: #6b7280;
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select.input option {
    background: #1e2338;
    color: #e5e7eb;
}

textarea.input {
    resize: vertical;
    min-height: 100px;
}

input[type="date"].input {
    color-scheme: dark;
}

input[type="date"].input::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}