/* Demo panel system, toasts, animations */
.demo-panel {
  display: none;
  animation: panelIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.demo-stat-card {
  animation: countUp 0.5s ease backwards;
}

.demo-stat-card:nth-child(1) { animation-delay: 0.05s; }
.demo-stat-card:nth-child(2) { animation-delay: 0.1s; }
.demo-stat-card:nth-child(3) { animation-delay: 0.15s; }
.demo-stat-card:nth-child(4) { animation-delay: 0.2s; }
.demo-stat-card:nth-child(5) { animation-delay: 0.25s; }
.demo-stat-card:nth-child(6) { animation-delay: 0.3s; }

/* Azryno branding */
.azryno-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: 50px;
  border: 1px solid var(--border);
}

.azryno-badge strong {
  color: var(--primary);
  font-weight: 600;
}

.sidebar-azryno {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.sidebar-azryno strong {
  color: var(--primary);
}

/* Toast */
.demo-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--text-heading);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  font-size: 0.875rem;
  animation: toastIn 0.3s ease;
  max-width: 340px;
}

.demo-toast i {
  color: #4ADE80;
  font-size: 1.1rem;
  flex-shrink: 0;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* Notification dropdown */
.notification-dropdown {
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  padding: 0;
  border: none;
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-md);
}

.notification-dropdown .dropdown-header {
  padding: 1rem 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.notification-item:hover {
  background: var(--bg-subtle);
}

.notification-item .notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.notification-item .notif-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Demo table improvements */
.demo-table-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-table-wrap .table {
  margin: 0;
}

.demo-table-wrap .table th {
  background: var(--bg-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 1rem;
  border: none;
  white-space: nowrap;
}

.demo-table-wrap .table td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.875rem;
  border-color: var(--border);
}

.demo-table-wrap .table tbody tr {
  transition: background var(--transition);
}

.demo-table-wrap .table tbody tr:hover {
  background: var(--bg-subtle);
}

/* Message list */
.message-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.message-item:hover,
.message-item.active {
  background: var(--primary-light);
}

.message-item.unread {
  border-left: 3px solid var(--primary);
}

.message-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Settings form */
.settings-section {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.settings-section h6 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Empty search state */
.demo-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.demo-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* Page header in panels */
.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.panel-header .panel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Filter pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-pill {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Class card enhanced */
.class-card-full {
  overflow: hidden;
  padding: 0;
}

.class-card-full .class-thumb {
  height: 140px;
  overflow: hidden;
}

.class-card-full .class-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.class-card-full:hover .class-thumb img {
  transform: scale(1.05);
}

.class-card-full .class-body {
  padding: 1.25rem;
}

.class-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-subtle);
  margin-top: 0.75rem;
  overflow: hidden;
}

.class-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Mobile search */
.mobile-search {
  padding: 0 1.5rem 0.75rem;
}

@media (min-width: 992px) {
  .mobile-search { display: none; }
}
