/* Beauty Service - Components */

/* Notification badge */
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--error); color: white;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg);
}

/* Profile header */
.profile-header {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  padding: 32px 16px 48px; text-align: center; color: white;
  position: relative;
}
.profile-header .avatar-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  margin: 0 auto 12px; overflow: hidden;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.profile-header h2 { font-size: 1.2rem; font-weight: 700; }
.profile-header p { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }
.profile-card {
  background: var(--bg); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -24px; padding: 24px 16px; position: relative;
}

/* Menu list */
.menu-list { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition);
  text-decoration: none; color: var(--text);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg-2); }
.menu-item .menu-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-item .menu-text { flex: 1; }
.menu-item .menu-title { font-weight: 600; font-size: 0.95rem; }
.menu-item .menu-desc { font-size: 0.8rem; color: var(--text-3); margin-top: 1px; }
.menu-item .menu-arrow { color: var(--text-3); }
.menu-item .menu-badge { margin-left: auto; }

/* Booking timeline */
.timeline { padding: 0; }
.timeline-item { display: flex; gap: 12px; padding-bottom: 20px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink); flex-shrink: 0; margin-top: 4px;
  position: relative; z-index: 1;
}
.timeline-item:not(:last-child) .timeline-dot::after {
  content: ''; position: absolute; top: 12px; left: 5px;
  width: 2px; height: calc(100% + 8px); background: var(--border);
}
.timeline-content { flex: 1; }
.timeline-title { font-weight: 600; font-size: 0.9rem; }
.timeline-time { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

/* Payment method card */
.payment-method {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--bg); border-radius: var(--radius-lg);
  border: 2px solid var(--border); cursor: pointer; transition: all var(--transition);
  margin-bottom: 10px;
}
.payment-method:hover, .payment-method.selected { border-color: var(--pink); background: var(--pink-light); }
.payment-method .pm-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.payment-method .pm-name { font-weight: 600; }
.payment-method .pm-desc { font-size: 0.8rem; color: var(--text-3); }
.payment-method .pm-check { margin-left: auto; color: var(--pink); display: none; }
.payment-method.selected .pm-check { display: block; }

/* QR code box */
.qr-box {
  background: white; border-radius: var(--radius-lg);
  padding: 24px; text-align: center; box-shadow: var(--shadow);
  border: 2px dashed var(--border-2);
}
.qr-box img { width: 200px; height: 200px; margin: 0 auto; }
.qr-amount { font-size: 1.5rem; font-weight: 700; color: var(--pink); margin-top: 12px; }

/* Worker lead card */
.lead-card {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 12px;
  border: 1px solid var(--border);
}
.lead-card .lead-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.lead-card .lead-service { font-weight: 700; font-size: 1rem; }
.lead-card .lead-price { font-size: 1.1rem; font-weight: 700; color: var(--pink); }
.lead-card .lead-details { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lead-card .lead-detail { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--text-2); background: var(--bg-2); padding: 4px 10px; border-radius: var(--radius-full); }
.lead-card .lead-actions { display: flex; gap: 8px; }

/* Slot grid */
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-btn {
  padding: 10px 6px; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--bg); font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.slot-btn:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.slot-btn.selected { border-color: var(--pink); background: var(--pink); color: white; }
.slot-btn:disabled { opacity: 0.4; cursor: not-allowed; background: var(--bg-3); }

/* Shop card */
.shop-card {
  background: var(--bg); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.shop-card .shop-img { width: 100%; height: 140px; object-fit: cover; background: var(--bg-3); }
.shop-card .shop-body { padding: 14px; }
.shop-card .shop-name { font-weight: 700; font-size: 1rem; }
.shop-card .shop-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 0.8rem; color: var(--text-3); }
.shop-card .shop-rating { display: flex; align-items: center; gap: 4px; color: #ffc107; font-weight: 600; }

/* Admin table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: var(--bg-2); padding: 12px 14px; text-align: left; font-weight: 600; color: var(--text-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg-2); }
.data-table tr:last-child td { border-bottom: none; }

/* Admin stats row */
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 768px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }

/* Sidebar nav */
.sidebar-nav { padding: 0 12px; }
.sidebar-logo { padding: 20px 12px; font-size: 1.1rem; font-weight: 700; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 12px; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius); color: rgba(255,255,255,0.7);
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); text-decoration: none; margin-bottom: 2px;
}
.sidebar-item:hover, .sidebar-item.active { background: rgba(233,30,99,0.2); color: white; }
.sidebar-item.active { color: var(--pink-soft); }
.sidebar-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.3); padding: 12px 12px 4px; margin-top: 8px; }

/* Notification item */
.notif-item {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.notif-item.unread { background: var(--pink-light); }
.notif-item:hover { background: var(--bg-2); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); flex-shrink: 0; margin-top: 6px; }
.notif-dot.read { background: transparent; }
.notif-title { font-weight: 600; font-size: 0.9rem; }
.notif-body { font-size: 0.85rem; color: var(--text-2); margin-top: 2px; }
.notif-time { font-size: 0.75rem; color: var(--text-3); margin-top: 4px; }

/* Review card */
.review-card { background: var(--bg); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* Floating action button */
.fab {
  position: fixed; bottom: calc(var(--nav-h) + 16px); right: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--pink); color: white; border: none;
  box-shadow: var(--shadow-pink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 50;
}
.fab:hover { transform: scale(1.1); }

/* Search bar */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-full); padding: 10px 16px;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--pink); }
.search-bar input { flex: 1; border: none; outline: none; font-family: var(--font); font-size: 0.95rem; background: transparent; }
.search-bar svg { color: var(--text-3); flex-shrink: 0; }

/* Filter chips */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500; white-space: nowrap;
  border: 2px solid var(--border); background: var(--bg);
  cursor: pointer; transition: all var(--transition); color: var(--text-2);
}
.chip.active { border-color: var(--pink); background: var(--pink-light); color: var(--pink); }

/* Image upload */
.img-upload {
  border: 2px dashed var(--border-2); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--bg-2);
}
.img-upload:hover { border-color: var(--pink); background: var(--pink-light); }
.img-upload input { display: none; }

/* Confirmation box */
.confirm-box {
  background: var(--bg); border-radius: var(--radius-xl);
  padding: 24px; text-align: center; box-shadow: var(--shadow-lg);
}
.confirm-icon { font-size: 3rem; margin-bottom: 12px; }
.confirm-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.confirm-text { color: var(--text-2); font-size: 0.9rem; margin-bottom: 20px; }

/* Summary row */
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 700; font-size: 1.05rem; color: var(--pink); }
.summary-label { color: var(--text-2); font-size: 0.9rem; }
.summary-value { font-weight: 600; }
