:root {
  --color-primary: #1e1b4b; /* deep indigo */
  --color-primary-dark: #17153B;
  --color-primary-light: #4338ca;
  --color-accent: #06b6d4; /* cyan */
  --color-accent-dark: #0891b2;
  --color-accent-light: #cffafe;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #ffffff;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.025em;
}

/* Custom Overrides */
.navbar-custom {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: var(--shadow-md);
}
.navbar-custom .navbar-brand {
  color: var(--color-text-light);
  font-size: 1.5rem;
}
.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-custom .nav-link:hover {
  color: var(--color-accent-light);
}
.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.39);
}
.btn-accent:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}
.card {
  background-color: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  border-color: var(--color-accent-light);
}
.card-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 700;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  padding: 1.25rem 1.5rem;
}
.text-primary-custom { color: var(--color-primary); }
.text-accent-custom { color: var(--color-accent); }

/* Breadcrumb & Links */
a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: var(--color-accent);
}

.breadcrumb-item a {
  color: var(--color-primary);
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Responsive Table Cards for Mobile */
@media screen and (max-width: 768px) {
  .table-mobile-cards thead {
    display: none;
  }
  .table-mobile-cards tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
  }
  .table-mobile-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 0.5rem;
    border-bottom: 1px solid var(--color-border);
  }
  .table-mobile-cards tbody td:last-child {
    border-bottom: none;
  }
  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-text-muted);
    margin-right: 1rem;
    text-align: left;
    min-width: 100px;
  }
  .table-mobile-cards tbody td > * {
    text-align: right;
  }
  .table-mobile-cards .input-group {
    width: 100%;
    justify-content: flex-end;
  }
  .table-mobile-cards td:first-child {
      justify-content: flex-start;
  }
  .table-mobile-cards td:first-child::before {
      min-width: auto;
  }
}

/* Category Grid Styles */
.category-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.category-card:hover .category-icon {
  transform: scale(1.05);
}
.category-icon {
  transition: transform 0.3s ease;
}
.subcategory-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  margin-right: 0.25rem;
}
.subcategory-pill:hover {
  background-color: var(--color-primary-light);
  color: white !important;
  border-color: var(--color-primary-light);
  text-decoration: none;
}
.subcategory-pill-more {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-accent);
  font-weight: 600;
}
.subcategory-pill-more:hover {
  background-color: transparent;
  color: var(--color-accent-dark) !important;
  text-decoration: underline;
}
