:root {
  --primary-color: #B21545;
  /* Main brand color */
  --primary-dark: #8F1138;
  /* Darker shade for hover/active states */
  --secondary-color: #D61A53;
  /* Lighter shade for accents */
  --accent-color: #E61E5C;
  /* Brightest shade for highlights */
  --background-light: #FAFAFA;
  /* Off-white */
  --text-dark: #2C0512;
  /* Very dark rose for important text */
  --text-primary: #212121;
  /* Nearly black for main text */
  --text-secondary: #424242;
  /* Dark gray for secondary text */
  --text-muted: #757575;
  /* Medium gray for less important text */

  /* Creator College Design System - Shadow variables */
  --cc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --cc-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
  --cc-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
  --cc-shadow-xl: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   GLOBAL BODY STYLES - Creator College Style
   ============================================ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* ============================================
   BUTTONS - Creator College Style (keeping original colors)
   ============================================ */

/* Base button styles */
.btn,
button:not([class*="fc-"]):not([class*="flatpickr"]) {
  border-radius: 24px;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  box-shadow: var(--cc-shadow-sm);
}

.btn:hover,
button:not([class*="fc-"]):not([class*="flatpickr"]):hover {
  transform: translateY(-1px);
  box-shadow: var(--cc-shadow-lg);
}

/* Primary buttons - using original colors with Creator College styling */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
  background: var(--primary-color);
  border: none;
  color: white;
  box-shadow: var(--cc-shadow-md);
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--cc-shadow-xl);
  opacity: 0.9;
  color: white;
}

.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):focus {
  background: var(--primary-color);
  border: none;
  color: white;
  box-shadow: 0 0 0 3px rgba(178, 21, 69, 0.25), var(--cc-shadow-md);
}

.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  transform: translateY(0);
  box-shadow: var(--cc-shadow-md);
}

/* Secondary/Outline buttons */
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info {
  background: white;
  border: 1px solid #e5e7eb;
  color: var(--text-secondary);
  box-shadow: var(--cc-shadow-sm);
}

.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--cc-shadow-lg);
}

/* Success, Danger, Warning buttons */
.btn-success {
  background: var(--primary-color);
  border: none;
  color: white;
}

.btn-success:hover {
  background: var(--primary-dark);
}

.btn-danger {
  background: var(--primary-color);
  border: none;
  color: white;
}

.btn-danger:hover {
  background: var(--primary-dark);
}

.btn-warning {
  background: var(--accent-color);
  border: none;
  color: white;
}

.btn-warning:hover {
  background: var(--secondary-color);
}

/* ============================================
   FORM INPUTS - Rounded Full Style
   ============================================ */
input[type="text"]:not([class*="fc-"]):not([class*="flatpickr"]),
input[type="email"]:not([class*="fc-"]):not([class*="flatpickr"]),
input[type="password"]:not([class*="fc-"]):not([class*="flatpickr"]),
input[type="number"]:not([class*="fc-"]):not([class*="flatpickr"]),
input[type="date"]:not([class*="fc-"]):not([class*="flatpickr"]),
input[type="time"]:not([class*="fc-"]):not([class*="flatpickr"]),
input[type="tel"]:not([class*="fc-"]):not([class*="flatpickr"]),
input[type="url"]:not([class*="fc-"]):not([class*="flatpickr"]),
input[type="search"]:not([class*="fc-"]):not([class*="flatpickr"]),
select:not([class*="fc-"]):not([class*="flatpickr"]),
textarea:not([class*="fc-"]):not([class*="flatpickr"]),
.form-control:not([class*="fc-"]):not([class*="flatpickr"]) {
  border: 1px solid #e5e7eb;
  box-shadow: var(--cc-shadow-sm);
  transition: all 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

input[type="text"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
input[type="email"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
input[type="password"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
input[type="number"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
input[type="date"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
input[type="time"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
input[type="tel"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
input[type="url"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
input[type="search"]:not([class*="fc-"]):not([class*="flatpickr"]):focus,
select:not([class*="fc-"]):not([class*="flatpickr"]):focus,
textarea:not([class*="fc-"]):not([class*="flatpickr"]):focus,
.form-control:not([class*="fc-"]):not([class*="flatpickr"]):focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(178, 21, 69, 0.1), var(--cc-shadow-sm);
  outline: none;
}

/* Textarea exception - not fully rounded */
textarea:not([class*="fc-"]):not([class*="flatpickr"]) {
  border-radius: 16px;
}

/* Select dropdowns */
select:not([class*="fc-"]):not([class*="flatpickr"]) {
  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;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.card,
.modal-content,
.dropdown-menu {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--cc-shadow-md);
}

.card-header {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;
  background: white;
}

/* ============================================
   NAVBAR & NAVIGATION
   ============================================ */
.navbar {
  box-shadow: var(--cc-shadow-md);
}

.nav-link {
  border-radius: 24px;
  padding: 6px 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* ============================================
   DROPDOWNS
   ============================================ */
.dropdown-menu {
  border-radius: 16px;
  box-shadow: var(--cc-shadow-lg);
  border: 1px solid #e5e7eb;
  padding: 8px;
}

.dropdown-item {
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #f8fafc;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--cc-shadow-xl);
}

.modal-header {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 16px 16px;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--cc-shadow-sm);
}

/* ============================================
   TOAST NOTIFICATIONS - Consistent Positioning
   ============================================ */
.toast-container {
  position: fixed;
  top: 80px;
  /* Account for fixed navbar */
  right: 20px;
  z-index: 1050;
  padding: 1rem;
}

/* Mobile adjustments for toasts */
@media (max-width: 768px) {
  .toast-container {
    top: 70px;
    /* Slightly less space on mobile (navbar might be shorter) */
    right: 10px;
    left: 10px;
    /* Add left margin so toast doesn't touch edges */
    padding: 0.75rem;
  }

  .toast-container .toast {
    max-width: 100%;
    /* Ensure toast doesn't overflow on small screens */
  }
}

@media (max-width: 480px) {
  .toast-container {
    top: 60px;
    /* Even less space on very small screens */
    right: 5px;
    left: 5px;
    padding: 0.5rem;
  }
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  border-radius: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

/* ============================================
   TABLES
   ============================================ */
.table {
  border-radius: 16px;
  overflow: hidden;
}

.table thead th {
  background: #f8fafc;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {

  .btn,
  button:not([class*="fc-"]):not([class*="flatpickr"]) {
    padding: 6px 12px;
    font-size: 13px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  .form-control {
    padding: 6px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {

  .btn,
  button:not([class*="fc-"]):not([class*="flatpickr"]) {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* ============================================
   Owner mascot toasts (update success/error)
   ============================================ */
.owner-mascot-toast {
  min-width: 400px;
  max-width: 460px;
  padding: 0 !important;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  animation: owner-toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes owner-toast-in {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.owner-mascot-toast .d-flex {
  padding: 1.25rem 1.375rem;
  align-items: center;
  gap: 0;
}

.owner-mascot-toast.owner-mascot-toast-success {
  background: linear-gradient(160deg, #f8fffe 0%, #f0fdf9 50%, #fff 100%);
  border-color: rgba(16, 185, 129, 0.15);
  box-shadow: 0 24px 48px -12px rgba(16, 185, 129, 0.18), 0 0 0 1px rgba(16, 185, 129, 0.06);
}

.owner-mascot-toast.owner-mascot-toast-success .mascot-image-wrapper {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 1.125rem;
}

.owner-mascot-toast.owner-mascot-toast-danger {
  background: linear-gradient(160deg, #fffcfc 0%, #fef2f2 50%, #fff 100%);
  border-color: rgba(239, 68, 68, 0.12);
  box-shadow: 0 24px 48px -12px rgba(239, 68, 68, 0.14), 0 0 0 1px rgba(239, 68, 68, 0.05);
}

.owner-mascot-toast.owner-mascot-toast-danger .mascot-image-wrapper {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 1.125rem;
}

.owner-mascot-toast .mascot-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.owner-mascot-toast .toast-body {
  padding: 0;
  padding-right: 0.375rem;
  flex: 1;
  min-width: 0;
  color: var(--text-dark, #2C0512);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.owner-mascot-toast .toast-body::before {
  display: none;
}

.owner-mascot-toast .btn-close {
  padding: 0.375rem;
  margin: -0.125rem -0.125rem -0.125rem 0.25rem;
  opacity: 0.4;
  border-radius: 0.5rem;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.owner-mascot-toast .btn-close:hover,
.owner-mascot-toast .btn-close:focus {
  opacity: 0.7;
  background-color: rgba(0, 0, 0, 0.06);
}

/* Mobile */
@media (max-width: 768px) {
  .owner-mascot-toast {
    min-width: 340px;
    max-width: 100%;
    border-radius: 1.125rem;
  }
  .owner-mascot-toast .d-flex {
    padding: 1rem 1.125rem;
  }
  .owner-mascot-toast .mascot-image-wrapper {
    width: 76px !important;
    height: 76px !important;
    margin-right: 0.875rem !important;
  }
  .owner-mascot-toast .mascot-image {
    width: 58px;
    height: 58px;
  }
  .owner-mascot-toast .toast-body {
    font-size: 0.9375rem;
  }
}