/* Medusa Design System - Django Adaptation */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --grey-0: #FFFFFF;
  --grey-5: #F9FAFB;
  --grey-10: #F3F4F6;
  --grey-20: #E5E7EB;
  --grey-30: #D1D5DB;
  --grey-40: #9CA3AF;
  --grey-50: #6B7280;
  --grey-60: #4B5563;
  --grey-70: #374151;
  --grey-80: #1F2937;
  --grey-90: #111827;
}

* {
  transition: all 0.2s ease-in-out;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Ubuntu, sans-serif;
  background-color: var(--grey-0);
  color: var(--grey-90);
}

.content-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
.text-xsmall-regular {
  font-size: 10px;
  line-height: 16px;
  font-weight: 400;
}

.text-small-regular {
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
}

.text-small-semi {
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
}

.text-base-regular {
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}

.text-base-semi {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
}

.text-large-regular {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.text-large-semi {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.text-xl-regular {
  font-size: 24px;
  line-height: 36px;
  font-weight: 400;
}

.text-xl-semi {
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
}

/* Buttons */
.contrast-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--grey-90);
  border-radius: 9999px;
  transition: all 0.2s ease-in-out;
}

.contrast-btn:hover {
  background-color: var(--grey-90);
  color: var(--grey-0);
}

.btn-primary {
  background-color: var(--grey-90);
  color: var(--grey-0);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--grey-80);
}

.btn-secondary {
  background-color: transparent;
  color: var(--grey-90);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--grey-20);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: var(--grey-5);
  border-color: var(--grey-30);
}

/* Cards */
.card {
  background-color: var(--grey-0);
  border: 1px solid var(--grey-20);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Inputs */
.medusa-input {
  position: relative;
  width: 100%;
}

.medusa-input input {
  width: 100%;
  padding: 1rem 1rem 0.25rem 1rem;
  height: 44px;
  background-color: var(--grey-5);
  border: 1px solid var(--grey-20);
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.medusa-input input:focus {
  outline: none;
  border-color: var(--grey-90);
  background-color: var(--grey-0);
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.medusa-input input:focus ~ label,
.medusa-input input:not(:placeholder-shown) ~ label {
  transform: translateY(-8px);
  font-size: 10px;
}

.medusa-input label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  color: var(--grey-50);
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

/* Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sidebar */
#sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--grey-30) var(--grey-5);
}

#sidebar::-webkit-scrollbar {
  width: 6px;
}

#sidebar::-webkit-scrollbar-track {
  background: var(--grey-5);
}

#sidebar::-webkit-scrollbar-thumb {
  background-color: var(--grey-30);
  border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--grey-40);
}

/* Sidebar Navigation Items */
.sidebar-nav-item {
  position: relative;
  transition: all 0.2s ease-in-out;
}

.sidebar-nav-item:hover {
  background-color: var(--grey-5);
}

.sidebar-nav-item.active {
  background-color: var(--grey-5);
  color: var(--grey-90);
  font-weight: 600;
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--grey-90);
  border-radius: 0 2px 2px 0;
}

/* Mobile Sidebar */
@media (max-width: 1023px) {
  #sidebar {
    transform: translateX(-100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }
  
  #sidebar.open {
    transform: translateX(0);
  }
  
  #sidebar-toggle {
    display: flex;
  }
}

@media (min-width: 1024px) {
  #sidebar-toggle {
    display: none;
  }
  
  #sidebar-overlay {
    display: none !important;
  }
}

/* Message Toast Animations */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out-right {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

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

/* Message Toast Styles */
.message-toast {
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.message-toast:hover {
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -6px rgba(0, 0, 0, 0.1);
}

/* Mobile adjustments for messages */
@media (max-width: 640px) {
  #messages-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
