:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --background-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background-light);
  color: var(--text-main);
  line-height: 1.6;
}

/* Glassmorphism Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted) !important;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(79, 70, 229, 0.05);
  transform: translateY(-1px);
}

/* Premium Cards */
.card-premium {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(79, 70, 229, 0.3);
}

.card-header-gradient {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

.btn-outline-custom {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

/* Badges */
.badge-soft {
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  border-radius: 0.375rem;
}

.badge-soft-primary {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.badge-soft-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.badge-soft-secondary {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--secondary-color);
}

.badge-soft-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.badge-soft-info {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--accent-color);
}

/* Typography */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title {
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* Accordion modifications */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.accordion-button {
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--card-bg);
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(79, 70, 229, 0.03);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(79, 70, 229, 0.3);
}

/* Page wrapper to give content breathing room */
.main-wrapper {
  padding-top: 2rem;
  padding-bottom: 4rem;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Audio Player Styling if needed */
audio {
  border-radius: 999px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Table styling */
.table-premium {
  vertical-align: middle;
}

.table-premium thead th {
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
}

.table-premium tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table-premium tbody tr {
  transition: background-color 0.2s ease;
}

.table-premium tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.02);
}