/* Subtle background gradient for all pages */
body {
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  margin: 0;
  font-family: system-ui, sans-serif;
}

/* Smooth transitions for links */
a {
  transition: all 0.3s ease;
}

a:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Rounded corners for card containers */
.card {
  border-radius: 1rem;
}

/* Shared button styles */
.btn {
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.5rem; /* equivalent to Tailwind's rounded-lg */
  cursor: pointer;
  border: none;
  font-weight: 600;
  /* padding and colors to be set via Tailwind utility classes */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Focus styles for accessibility */
.btn:focus-visible {
  outline: 2px solid #3b82f6; /* Tailwind's blue-500 */
  outline-offset: 2px;
}


/* ===== ADMIN DASHBOARD STYLES ===== */
.dashboard-wrapper {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
}

/* Sidebar */
.dashboard-wrapper #sidebar {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
}
.dashboard-wrapper #sidebar h1 {
  font-size: 1.4rem;
  color: #fff;
}
.dashboard-wrapper #sidebar .sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}
.dashboard-wrapper #sidebar .sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.sidebar-btn i {
  font-size: 1.2rem;
}

/* Main content */
.dashboard-wrapper main {
  padding: 1.5rem;
}

/* Section headings */
.dashboard-wrapper h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

/* Cards */
.dashboard-wrapper .card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.dashboard-wrapper .card:hover {
  transform: translateY(-3px);
}

/* Buttons */
.dashboard-wrapper button {
  transition: transform 0.1s, background 0.3s;
}
.dashboard-wrapper button:hover {
  transform: scale(1.03);
}

/* Table */
.dashboard-wrapper table {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.dashboard-wrapper th {
  font-weight: 600;
  color: #374151;
}
.dashboard-wrapper td {
  color: #4b5563;
}

