* {
  --primary: #0d6efd;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
  --light: #f8f9fa;
  --dark: #212529;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
}

body.bg-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card {
  border: none;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-card {
  background: white;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(13, 110, 253, 0.15) !important;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0b5ed7 100%);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.container py-5 {
  padding: 3rem 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

.display-4 {
  font-weight: 700;
}

.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.alert {
  border: none;
  border-radius: 12px;
  border-left: 4px solid;
}

.alert-success {
  border-left-color: var(--success);
  background: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  border-left-color: var(--danger);
  background: #f8d7da;
  color: #842029;
}

.alert-warning {
  border-left-color: var(--warning);
  background: #fff3cd;
  color: #664d03;
}

.alert-info {
  border-left-color: var(--info);
  background: #cfe2ff;
  color: #084298;
}

form .form-control, form .form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

form .form-control:focus, form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

footer {
  margin-top: auto;
  border-top: 1px solid #dee2e6;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  text-decoration: none;
  color: #212529;
  transition: all 0.3s ease;
  display: block;
}

.dashboard-card:hover {
  text-decoration: none;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(13, 110, 253, 0.15);
  transform: translateY(-3px);
}

.badge {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

/* ===== Artisty UI + Animations (safe, non-breaking) ===== */

/* Subtle floating gradient blobs */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw auto -20vw;
  height: 60vh;
  background: radial-gradient(circle at 20% 30%, rgba(13,110,253,0.20), transparent 55%),
              radial-gradient(circle at 70% 20%, rgba(25,135,84,0.18), transparent 50%),
              radial-gradient(circle at 60% 70%, rgba(13,202,240,0.14), transparent 55%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
  animation: bb-float 10s ease-in-out infinite;
}

@keyframes bb-float {
  0%, 100% { transform: translate3d(0,0,0); opacity: 0.95; }
  50% { transform: translate3d(24px, 18px, 0); opacity: 1; }
}

/* Hover shimmer for cards */
.card,
.feature-card,
.dashboard-card {
  position: relative;
  overflow: hidden;
}

.card::after,
.feature-card::after,
.dashboard-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 140%;
  height: 140%;
  transform: rotate(18deg);
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.22) 45%,
    rgba(255,255,255,0.05) 60%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover::after,
.feature-card:hover::after,
.dashboard-card:hover::after {
  opacity: 1;
  animation: bb-shimmer 0.9s ease forwards;
}

@keyframes bb-shimmer {
  from { transform: translateX(-30%) rotate(18deg); }
  to { transform: translateX(30%) rotate(18deg); }
}

/* Entry animations */
.bb-animate-in {
  animation: bb-in 0.55s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes bb-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Button micro-press */
.btn:active {
  transform: translateY(0) scale(0.99);
}

/* Nice focus ring */
:focus {
  outline: none;
}

:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25) !important;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .bb-animate-in { animation: none; }
  .card:hover::after,
  .feature-card:hover::after,
  .dashboard-card:hover::after { animation: none; }
}

