/* LifeHub - Custom Design System Styles */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Material Symbols icon helper */
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
  vertical-align: middle;
  user-select: none;
}

.material-symbols-outlined.fill-1 {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Tombstone effect for pending offline sync */
.tombstone-sync {
  opacity: 0.65;
  border-style: dashed !important;
  position: relative;
}

.tombstone-sync::after {
  content: "Đang chờ đồng bộ";
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  background: rgba(15, 82, 186, 0.15);
  color: #003c90;
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: 600;
}

/* Glassmorphism & Elevation */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(195, 198, 213, 0.4);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(115, 119, 132, 0.3);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(115, 119, 132, 0.6);
}

/* Badge styling */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

/* Touch friendly active state */
button:active {
  transform: scale(0.98);
}
