/* Components - Reusable UI Components */

/* ========== BOTONES ========== */

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: #2563EB;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background-color: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-outlined {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outlined:hover {
  background-color: rgba(59, 130, 246, 0.08);
}

.btn-outlined.error {
  color: var(--error);
  border-color: var(--error);
}

.btn-outlined.success {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.btn-text {
  background-color: transparent;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-text:hover {
  background-color: rgba(59, 130, 246, 0.08);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon .icon {
  font-size: 20px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.icon-button:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.icon-button .icon {
  font-size: 24px;
  color: var(--on-surface);
}

/* ========== TARJETAS (CARDS) ========== */

.card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: none;
  transition: all var(--transition-fast);
}

.card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card.clickable {
  cursor: pointer;
}

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

.card-status {
  position: relative;
  overflow: hidden;
}

.card-status-border {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}

.home-card {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-xl);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-card-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.home-card-icon-wrapper .icon {
  font-size: 32px;
  color: var(--primary);
}

.home-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.home-card .body-small {
  margin-top: 4px;
  line-height: 1.3;
  max-width: 90%;
}

.home-card.primary {
  background-color: var(--primary);
}

.home-card.primary .home-card-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.2);
}

.home-card.primary .home-card-icon-wrapper .icon,
.home-card.primary .home-card-title {
  color: white;
}

/* ========== MATERIAL MESH AVATAR ========== */

.material-mesh-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  /* background será aplicado inline con mesh gradient */
  background-color: var(--surface-variant); /* Fallback si no hay gradient */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.material-mesh-avatar:hover {
  transform: scale(1.05);
}

/* ========== INPUTS ========== */

.input-field {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  background-color: var(--surface);
  border: 1px solid var(--border-color-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
  color: var(--on-surface);
}

.input-field::placeholder {
  color: var(--secondary-text);
}

.input-field:focus {
  border: 2px solid var(--primary);
  padding: 15px;
}

.input-field:disabled {
  background-color: #F3F4F6;
  cursor: not-allowed;
}

.input-field.error {
  border-color: var(--error);
}

.input-wrapper {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-text);
  margin-bottom: 6px;
}

.input-error {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
}

/* ========== CHIPS Y BADGES ========== */

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chip-success {
  background-color: var(--state-complete-bg);
  color: var(--state-complete-text);
}

.chip-warning {
  background-color: var(--state-pending-bg);
  color: var(--state-pending-text);
}

.chip-error {
  background-color: var(--state-error-bg);
  color: var(--state-error-text);
}

.chip-info {
  background-color: var(--state-info-bg);
  color: var(--state-info-text);
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-chip:hover {
  background-color: rgba(59, 130, 246, 0.2);
}

.action-chip .icon {
  font-size: 18px;
}

/* ========== LISTAS Y TABLAS ========== */

.item-list-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F3F4F6;
}

.item-list-row:last-child {
  border-bottom: none;
}

.item-label {
  font-size: 14px;
  color: var(--secondary-text);
  font-weight: 500;
}

.item-value {
  font-size: 14px;
  color: var(--on-surface);
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 12px 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: var(--secondary-text);
}

.info-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
}

/* ========== NAVEGACIÓN ========== */

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-bar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  flex: 1;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 8px;
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--on-surface);
  cursor: pointer;
  padding: 8px 16px;
  transition: color var(--transition-fast);
}

.bottom-nav-item:hover {
  color: var(--primary);
}

.bottom-nav-item .icon {
  font-size: 24px;
}

.bottom-nav-item span {
  font-size: 12px;
  font-weight: 500;
}

/* ========== MODALES ========== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--on-surface);
}

.modal-content {
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background-color: var(--border-color-medium);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ========== SNACKBAR / TOAST ========== */

.snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  animation: slideUp 0.3s ease;
}

.snackbar-success {
  background-color: var(--accent-green);
  color: white;
}

.snackbar-error {
  background-color: var(--error);
  color: white;
}

.snackbar-warning {
  background-color: var(--accent-yellow);
  color: #78350F;
}

.snackbar-info {
  background-color: var(--primary);
  color: white;
}

/* ========== EMPTY STATE ========== */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--secondary-text);
}

.empty-state .icon {
  font-size: 64px;
  color: var(--border-color-medium);
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 14px;
}

/* ========== PROGRESO ========== */

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--accent-green);
  transition: width 0.3s ease;
}

.progress-bar-fill.warning {
  background-color: var(--accent-yellow);
}

.progress-bar-fill.error {
  background-color: var(--error);
}

/* ========== LOADING OVERLAY ========== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

[data-theme="dark"] .loading-overlay {
  background-color: rgba(18, 18, 18, 0.9);
}

/* ========== PICKING ITEMS ========== */

.picked-item {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.picked-item:hover {
  opacity: 0.8;
}

/* ========== FOCUS STATES - ACCESIBILIDAD ========== */

/* Focus visible para navegación con teclado */
.btn-primary:focus-visible,
.btn-outlined:focus-visible,
.btn-text:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-field:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.card.clickable:focus-visible,
.home-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Remover outline por defecto en mouse */
.btn-primary:focus:not(:focus-visible),
.btn-outlined:focus:not(:focus-visible),
.btn-text:focus:not(:focus-visible),
.icon-button:focus:not(:focus-visible),
.input-field:focus:not(:focus-visible),
.card:focus:not(:focus-visible) {
  outline: none;
}

/* ========== TABLES ========== */

.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead {
  background-color: var(--background);
  border-bottom: 2px solid var(--border-color);
}

.table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 500;
  color: var(--on-surface);
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table th.sortable {
  cursor: pointer;
  user-select: none;
}

.table th.sortable:hover {
  background-color: var(--border-color);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: var(--background);
}

.table tbody tr.clickable {
  cursor: pointer;
}

.table tbody tr.clickable:active {
  background-color: var(--border-color);
}

.table td {
  padding: 16px 12px;
  color: var(--on-surface);
}

.table td.text-secondary {
  color: var(--secondary-text);
  font-size: 13px;
}

/* Striped rows */
.table.striped tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .table.striped tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Condensed table */
.table.condensed th,
.table.condensed td {
  padding: 8px 12px;
}

/* Table actions */
.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Stats Cards para Admin Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

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

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-card-icon.primary {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.stat-card-icon.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}

.stat-card-icon.warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--accent-yellow);
}

.stat-card-icon.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.stat-card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 14px;
  color: var(--secondary-text);
  margin-top: 4px;
}

.stat-card-change {
  font-size: 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-card-change.positive {
  color: var(--accent-green);
}

.stat-card-change.negative {
  color: var(--error);
}

/* Filters Bar */
.filters-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface);
  white-space: nowrap;
}

.filter-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select:hover {
  border-color: var(--primary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 32px;
}

.empty-state-icon {
  font-size: 64px;
  color: var(--secondary-text);
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 24px;
}

/* ========== QUANTITY CONTROLS ========== */

.qty-input {
  width: 64px;
  text-align: center;
  border: 1px solid var(--border-color-medium);
  border-radius: var(--radius-md);
  padding: 8px;
  font-weight: 700;
  font-size: 18px;
  background-color: var(--surface);
  color: var(--on-surface);
}

.qty-btn-decrease {
  background-color: var(--state-error-bg);
  color: var(--state-error-text);
  width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: bold;
}

.qty-btn-increase {
  background-color: var(--state-complete-bg);
  color: var(--state-complete-text);
  width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: bold;
}

/* ========== FLOATING ACTION BUTTON (FAB) ========== */

.fab-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0.5;
}

.fab-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--outline);
}

.fab-cart.active {
  opacity: 1;
  animation: pulse-fab 2s infinite;
}

.fab-cart:not(:disabled):hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.15);
}

.fab-cart:not(:disabled):active {
  transform: scale(0.95);
}

.fab-cart .icon {
  font-size: 28px;
  color: white;
}

/* Badge del FAB */
.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--error);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.fab-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* Animación de pulso para el FAB */
@keyframes pulse-fab {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), 0 8px 24px rgba(59, 130, 246, 0.2);
  }
}

/* ========== DRAWER NAVIGATION ========== */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--surface);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--outline);
  background-color: var(--primary);
  color: white;
}

.drawer-header .title-medium {
  color: white;
  margin: 0;
}

.drawer-header .icon-button {
  color: white;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.drawer-user-info {
  padding: 16px;
  background-color: var(--surface-variant);
}

.drawer-user-info p {
  margin: 4px 0;
}

.drawer-divider {
  height: 1px;
  background-color: var(--outline);
  margin: 8px 0;
}

.drawer-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: none;
  border: none;
  color: var(--on-surface);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
}

.drawer-item:hover {
  background-color: var(--surface-variant);
}

.drawer-item:active {
  background-color: var(--outline-variant);
}

.drawer-item .icon {
  font-size: 24px;
  color: var(--on-surface-variant);
}

.drawer-item span {
  font-weight: 500;
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid var(--outline);
}

/* ========== NOTIFICATIONS SYSTEM ========== */

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--error);
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 380px;
  max-height: 500px;
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.notifications-header {
  padding: 16px;
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface);
}

.btn-text-small {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.btn-text-small:hover {
  background-color: rgba(59, 130, 246, 0.08);
}

.notifications-list {
  overflow-y: auto;
  max-height: 440px;
}

.notification-item {
  padding: 16px;
  border-bottom: 1px solid var(--outline-variant);
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  gap: 12px;
}

.notification-item:hover {
  background-color: var(--surface-variant);
}

.notification-item.unread {
  background-color: rgba(59, 130, 246, 0.05);
}

.notification-item.unread::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.notification-icon {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}

.notification-time {
  font-size: 12px;
  color: var(--on-surface-variant);
  opacity: 0.7;
}

.notifications-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--on-surface-variant);
}

.notifications-empty-icon {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 12px;
}

.notifications-empty-text {
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .notifications-dropdown {
    width: calc(100vw - 32px);
    right: -140px;
  }
}
