/* Bona Admin Panel Styles */

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Admin header styles */
.admin-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.admin-topbar-menu-btn,
.admin-topbar-title,
.admin-topbar-user-name {
  color: #1f2937;
}

.admin-topbar-user-role {
  color: #6b7280;
}

@media (max-width: 1023px) {
  .admin-topbar {
    background-image: linear-gradient(to bottom, #312e81 0%, #3730a3 55%, #581c87 100%);
    border-bottom-color: #4338ca;
    box-shadow: 0 10px 20px rgba(49, 46, 129, 0.22);
  }

  .admin-topbar-menu-btn,
  .admin-topbar-title,
  .admin-topbar-user-name,
  .admin-topbar-user-role {
    color: #ffffff;
  }
}

/* Sidebar styles */
.sidebar-link {
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 0;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 3px solid #fff;
}

/* Form styles */
.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Button styles */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.btn-primary {
  background-color: #4f46e5;
  color: white;
}

.btn-primary:hover {
  background-color: #3730a3;
}

/* Card styles */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

/* Table styles */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

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

/* Admin users page
   Yerleşim tamamen akışkandır: kolon sayısı `auto-fit` ile kapsayıcının
   gerçek genişliğine göre belirlenir, bu yüzden sabit kırılım noktalarına
   (ve sol menünün genişliğini hesaba katmaya) gerek kalmaz. */
.admin-users-page {
  --users-ink: #172033;
  --users-muted: #667085;
  --users-border: #e5e9f2;
  --users-line: #edf0f5;
  --users-primary: #4f46e5;
  max-width: 96rem;
  margin-inline: auto;
  padding-block: 1.25rem;
  color: var(--users-ink);
}

/* Özet kartları */
.admin-users-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.admin-users-stat-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 1px solid var(--users-border);
  border-radius: 0.9rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.admin-users-stat-icon {
  display: grid;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 0.75rem;
}

.admin-users-stat-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-users-stat-card strong {
  order: -1;
  color: var(--users-ink);
  font-size: 1.35rem;
  line-height: 1.15;
}

.admin-users-stat-card > div > span {
  color: var(--users-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.admin-users-stat-card small {
  color: #98a2b3;
  font-size: 0.68rem;
}

.admin-users-stat-online .admin-users-stat-icon {
  color: #059669;
  background: #ecfdf3;
}

.admin-users-stat-phone .admin-users-stat-icon {
  color: #0284c7;
  background: #f0f9ff;
}

.admin-users-stat-contract .admin-users-stat-icon {
  color: #c2410c;
  background: #fff7ed;
}

/* Liste kabı ve başlık */
.admin-users-list-card {
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #f4f6fa;
  border: 1px solid #dfe4ec;
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
}

.admin-users-list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid var(--users-border);
}

.admin-users-list-heading > div:first-child {
  min-width: 12rem;
  flex: 1 1 16rem;
}

.admin-users-list-heading h2 {
  margin: 0;
  color: var(--users-ink);
  font-size: 0.95rem;
  font-weight: 750;
}

.admin-users-list-heading p {
  margin: 0.2rem 0 0;
  color: var(--users-muted);
  font-size: 0.75rem;
}

.admin-users-list-tools {
  display: flex;
  flex: 1 1 22rem;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.6rem;
}

.admin-users-result-count {
  align-self: center;
  padding: 0.45rem 0.7rem;
  color: #3730a3;
  background: #eef2ff;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.admin-users-filter-status {
  min-width: 0;
  flex: 1 1 11rem;
}

.admin-users-filter-status label {
  display: block;
  margin-bottom: 0.35rem;
  color: #344054;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-users-select-wrap {
  position: relative;
}

.admin-users-select-wrap > i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  z-index: 1;
  color: #98a2b3;
  font-size: 0.75rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-users-select-wrap select,
.admin-users-select {
  width: 100%;
  color: #1f2937;
  background-color: #fff;
  border: 1px solid #d0d5dd;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-users-select-wrap select {
  height: 2.6rem;
  padding: 0 1rem 0 2.35rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
}

.admin-users-select-wrap select:focus,
.admin-users-select:focus,
.admin-user-card:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.admin-users-primary-btn,
.admin-users-secondary-btn {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.6rem;
  padding: 0 0.9rem;
  border-radius: 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.admin-users-primary-btn {
  color: #fff;
  background: var(--users-primary);
  border: 1px solid var(--users-primary);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.admin-users-secondary-btn {
  color: #475467;
  background: #fff;
  border: 1px solid #d0d5dd;
}

.admin-users-primary-btn:hover {
  background: #4338ca;
}

.admin-users-secondary-btn:hover {
  background: #f8fafc;
}

.admin-users-primary-btn:focus-visible,
.admin-users-secondary-btn:focus-visible,
.admin-users-pagination a:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.25);
  outline-offset: 2px;
}

/* Kullanıcı kartları */
.admin-users-directory {
  display: grid;
  gap: 0.55rem;
  padding: 0.6rem;
}

.admin-user-card {
  position: relative;
  overflow: hidden;
  padding: 0.7rem 0.8rem 0.8rem;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 0.75rem;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-user-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: '';
  background: #cbd5e1;
}

.admin-user-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(49, 46, 129, 0.09);
}

.admin-user-card[data-user-online='online']::before {
  background: #10b981;
}

.admin-user-card.is-trial-expired {
  background: linear-gradient(90deg, #fff7f8 0, #fff 32%);
  border-color: #fecdd3;
}

.admin-user-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--users-line);
}

.admin-user-identity {
  display: flex;
  min-width: 0;
  flex: 1 1 15rem;
  align-items: center;
  gap: 0.6rem;
}

.admin-user-id-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.25rem 0.4rem;
  color: #818cf8;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 0.45rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-user-id-tag strong {
  color: #3730a3;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.admin-users-person-content {
  min-width: 0;
}

.admin-user-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.admin-user-name-line h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #101828;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
}

.admin-user-name-line [class*='online-badge-'] {
  font-size: 0.64rem;
}

.admin-user-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem 0.55rem;
  margin-top: 0.22rem;
  color: #7c8799;
  font-size: 0.68rem;
}

.admin-user-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-user-meta-line i {
  color: #a5adba;
  font-size: 0.58rem;
}

.admin-user-card-actions {
  display: flex;
  min-width: 0;
  flex: 0 1 20rem;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-user-action-label {
  color: #98a2b3;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-user-card-actions .admin-users-select {
  flex: 1 1 9rem;
  max-width: 14rem;
}

/* Kart içi detay sütunları */
.admin-user-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr));
  gap: 0.5rem;
}

.admin-user-detail {
  min-width: 0;
  padding: 0.5rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #eef1f6;
  border-radius: 0.55rem;
}

.admin-user-detail-label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-bottom: 0.35rem;
  color: #98a2b3;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.admin-user-detail-label i {
  color: #818cf8;
  font-size: 0.64rem;
}

.admin-users-contact-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.72rem;
  line-height: 1.3;
}

.admin-users-contact-line > i:first-child {
  width: 0.8rem;
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 0.66rem;
  text-align: center;
}

.admin-users-contact-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.admin-user-state {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.2rem 0.38rem;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-user-state.is-online {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.admin-user-state.is-team {
  cursor: pointer;
}

.admin-users-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.22rem 0.42rem;
  border: 1px solid currentColor;
  border-radius: 0.42rem;
  font-size: 0.66rem;
  line-height: 1.2;
}

.admin-users-badge.is-premium {
  color: #7e22ce;
  background: #faf5ff;
  border-color: #d8b4fe;
}

.admin-users-badge.is-free {
  color: #0e7490;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.admin-users-badge.is-trial {
  color: #b45309;
  background: #fffbeb;
  border-color: #fcd34d;
}

.admin-users-badge.is-expired,
.admin-users-badge.is-past-due {
  color: #be123c;
  background: #fff1f2;
  border-color: #fda4af;
}

.admin-users-badge.is-pending {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

.admin-users-badge.is-ended {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.admin-users-badge.is-none {
  color: #4338ca;
  background: #eef2ff;
  border-color: #a5b4fc;
}

.admin-user-inline-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
}

.admin-user-detail-primary {
  color: #475569;
  font-size: 0.7rem;
  font-weight: 650;
}

.admin-user-detail-secondary {
  margin-top: 0.2rem;
  color: #98a2b3;
  font-size: 0.65rem;
}

.admin-user-activity-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  color: #667085;
  font-size: 0.7rem;
}

.admin-user-activity-value strong {
  color: #344054;
  font-size: 0.72rem;
}

.admin-user-meter + .admin-user-meter {
  margin-top: 0.42rem;
}

.admin-user-meter > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
  color: #667085;
  font-size: 0.64rem;
}

.admin-user-meter strong {
  color: #344054;
  font-size: 0.64rem;
}

.admin-users-progress {
  width: 100%;
  height: 0.28rem;
  overflow: hidden;
  background: #e9edf3;
  border-radius: 999px;
}

.admin-users-progress > span {
  display: block;
  height: 100%;
  background: #6366f1;
  border-radius: inherit;
}

.admin-users-progress > .is-warning { background: #f59e0b; }
.admin-users-progress > .is-danger { background: #e11d48; }
.admin-users-progress > .is-primary { background: #6366f1; }

.admin-users-select {
  min-width: 0;
  height: 2.2rem;
  padding: 0 0.6rem;
  color: #3730a3;
  background-color: #f5f3ff;
  border: 1px solid #c7d2fe;
  border-radius: 0.5rem;
  outline: none;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

/* Alt kullanıcı paneli */
.sub-users-row {
  margin-top: -0.4rem;
}

.admin-sub-users-panel {
  margin: 0 0.6rem;
  padding: 0.85rem;
  background: #faf8ff;
  border: 1px solid #ddd6fe;
  border-top: 0;
  border-radius: 0 0 0.85rem 0.85rem;
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.07);
}

.admin-sub-users-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.7rem;
  color: #6d28d9;
  font-size: 0.7rem;
}

.admin-sub-users-header > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.admin-sub-users-header > div span {
  color: #7c8799;
  font-weight: 500;
}

.admin-sub-users-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 0.5rem;
}

.admin-sub-users-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  padding: 0.6rem 0.7rem;
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 0.65rem;
  font-size: 0.68rem;
}

.admin-sub-users-item > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #667085;
  overflow-wrap: anywhere;
}

.admin-sub-users-item > div:first-child strong {
  color: #344054;
}

.admin-sub-users-item > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 0.3rem;
}

/* Boş durum ve sayfalama */
.admin-users-empty {
  min-height: 14rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: #667085;
  text-align: center;
}

.admin-users-empty > span {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.8rem;
  place-items: center;
  color: #6366f1;
  background: #eef2ff;
  border-radius: 1rem;
  font-size: 1.2rem;
}

.admin-users-empty strong {
  color: #1f2937;
  font-size: 0.95rem;
}

.admin-users-empty p {
  margin: 0.25rem 0 0.85rem;
  font-size: 0.75rem;
}

.admin-users-empty button {
  padding: 0.55rem 0.8rem;
  color: #4338ca;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 0.55rem;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.admin-users-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.admin-users-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  color: #475467;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 0.6rem;
  font-size: 0.75rem;
  font-weight: 650;
  text-decoration: none;
}

.admin-users-pagination a:hover {
  color: #4338ca;
  background: #f5f3ff;
  border-color: #a5b4fc;
}

.admin-users-pagination .is-current {
  color: #fff;
  background: var(--users-primary);
  border-color: var(--users-primary);
}

.admin-users-pagination-nav {
  gap: 0.45rem;
  padding: 0 0.85rem;
}

/* Dar ekranlarda alan kazan (ana içerik kabının 1.5rem dolgusunu kısar) */
@media (max-width: 640px) {
  .admin-users-page {
    margin-inline: -0.75rem;
    padding-block: 0.75rem;
  }

  .admin-users-list-heading,
  .admin-sub-users-panel {
    padding: 0.85rem;
  }

  .admin-users-directory {
    padding: 0.45rem;
  }

  .admin-user-card {
    padding: 0.65rem;
  }

  .admin-user-card-actions {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .admin-user-card-actions .admin-users-select {
    max-width: none;
    height: 2.4rem;
  }

  .admin-users-pagination-nav {
    padding: 0;
  }

  .admin-users-pagination-nav span {
    display: none;
  }
}

.admin-discount-codes-page {
  color: #0f172a;
}

.admin-discount-codes-page .admin-discount-surface {
  background-color: #ffffff;
  color: #0f172a;
}

.admin-discount-codes-page .admin-discount-field,
.admin-discount-codes-page .admin-discount-select,
.admin-discount-codes-page .admin-discount-date {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  color: #0f172a;
  caret-color: #0f172a;
}

.admin-discount-codes-page .admin-discount-field::placeholder,
.admin-discount-codes-page .admin-discount-date::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.admin-discount-codes-page .admin-discount-field:disabled,
.admin-discount-codes-page .admin-discount-select:disabled,
.admin-discount-codes-page .admin-discount-date:disabled {
  background-color: #f8fafc;
  color: #334155;
  -webkit-text-fill-color: #334155;
  opacity: 1;
}

.admin-discount-codes-page .admin-discount-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 0.9rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 2.75rem;
}

.admin-discount-codes-page .admin-discount-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(14%) sepia(10%) saturate(1185%) hue-rotate(176deg) brightness(92%) contrast(90%);
  opacity: 1;
}

.admin-discount-codes-page .admin-discount-date::-webkit-datetime-edit,
.admin-discount-codes-page .admin-discount-date::-webkit-datetime-edit-fields-wrapper,
.admin-discount-codes-page .admin-discount-date::-webkit-datetime-edit-text,
.admin-discount-codes-page .admin-discount-date::-webkit-datetime-edit-month-field,
.admin-discount-codes-page .admin-discount-date::-webkit-datetime-edit-day-field,
.admin-discount-codes-page .admin-discount-date::-webkit-datetime-edit-year-field,
.admin-discount-codes-page .admin-discount-date::-webkit-datetime-edit-hour-field,
.admin-discount-codes-page .admin-discount-date::-webkit-datetime-edit-minute-field {
  color: #0f172a;
}

.admin-discount-codes-page .admin-discount-muted {
  color: #475569;
}

.admin-discount-codes-page .admin-discount-modal {
  background-color: #ffffff;
  color: #0f172a;
}

@media (prefers-reduced-motion: reduce) {
  .admin-users-page *,
  .admin-users-page *::before,
  .admin-users-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Notification styles */
.notification {
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  animation: slideIn 0.3s ease;
}

.notification.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.notification.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main-content {
    margin-left: 0;
  }
}

/* Loading spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toggle switch styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #10b981;
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-slider:hover {
  background-color: #a0aec0;
}

input:checked + .toggle-slider:hover {
  background-color: #059669;
}
