/* ================================== GLOBAL STYLES ================================== */
:root {
  --primary-color: linear-gradient(to right, #813ee5, #8a6aad);
  --primary-gradient: linear-gradient(to right, #3b82f6, #9333ea);
  --primary-success: linear-gradient(to right, #22c55e, #16a34a);
  --primary: #9810fa;
  /* --primary: #744eee; */
  --secondary: #faf5ff;
  --secondary-gray: #f3f4f6;
  --primary-dark: #3c0a6d;
  --primary-light: #eef2ff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #1f2937;
  --light: #f9fafb;
  --light-secondary: #f3f3f3;
  --gray: #99a1af;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "Geist", sans-serif;
  --font-mono: "Geist Mono", monospace;
}

* {
  font-family: var(--font-sans) !important;
}

ons-toolbar {
  border-bottom: 1px solid #ccc !important;
  box-shadow: none !important;
  background-image: none !important;
  background: white !important;
  height: auto !important;
  padding: 20px 0 0 0 !important;
  color: var(--primary) !important;
}

/* ================================== PAGE STYLES ================================== */
.content {
  margin-top: 0px;
  /* Adjust this value based on your toolbar height */
  padding-bottom: 80px;
  margin-bottom: 0px;
  /* Adjust this value based on your toolbar height */
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* ================================== ANIMATE ================================== */
.animate__animated {
  --animate-duration: 0.5s;
}

.input-field,
.form-control {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 1rem !important;
  border: 2px solid #e5e7eb !important;
  background-color: #f9fafb;
  color: #111827 !important;
  outline: none !important;
  transition: all 0.2s ease-in-out !important;
}

/* Placeholder */
.input-field::placeholder {
  color: #9ca3af !important;
}

/* Focus state */
.input-field:focus {
  border-color: #c084fc !important;
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.5) !important;
}

.btn-gradient {
  width: 100%;
  padding: 1rem 0;
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: none;
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover */
.btn-gradient:hover {
  background: var(--primary-gradient);
}

/* Disabled */
.btn-gradient:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bg-google {
  background-color: #fff4d2 !important;
  padding: 1rem 0;
  border-radius: 1rem;
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hilangkan spinner di Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.toolbar__left,
.toolbar__center,
.toolbar__right {
  all: unset; /* Reset semua style */
  display: none !important;
}

/* ====== INPUT STYLE BARU ============= */
/* input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"] {
  padding: 13px !important;
  padding-right: 115px !important;
  font-size: 16px !important;
} */

input[type="file"] {
  padding: 10px 15px !important;
  font-size: 15px !important;
}

/* select {
  padding: 12px !important;
  font-size: 15px !important;
  width: 100% !important;
} */

/* .text-input--material__label,
.text-input__label {
  padding: 10px 15px !important;
  font-size: 20px !important;
} */

.text-input {
  font-size: 16px !important;
}

textarea {
  background-color: transparent !important;
  padding: 15px !important;
}

/* .border {
  border: 1px solid var(--primary) !important;
} */

.text-forgot-password {
  color: var(--primary) !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.form-text-add,
.form-image-add,
.form-video-add,
.form-buySell-add {
  padding: 20px !important;
  margin-top: 6rem;
}

.bg-posting {
  background: var(--primary-gradient) !important;
}
.border-top-card {
  border-top: 1px solid #ecedee !important;
}

ons-fab {
  border-radius: 50% !important;
}

.tab-item {
  font-weight: 600;
}

ons-row,
ons-col {
  gap: 0 !important;
}

.content.bg-forum-read,
.content.bg-forum-comments,
.content.bg-market-detail {
  background: #fff !important;
  padding: 0 !important;
  min-height: 100vh !important;
  display: flex;
  flex-direction: column;
}

.content.bg-home-add-asset,
.content.bg-home-edit-asset,
.content.bg-home-detail-asset,
.content.bg-notification,
.content.bg-history-settings,
/* .content.bg-notification-chats, */
.content.bg-forum,
.content.bg-market,
.content.bg-setting-update,
.content.bg-setting-update-password,
.content.bg-setting-forgot-password,
.content.bg-setting-verifikasi-code,
.content.bg-setting-set-password {
  background: var(--primary-gradient) !important;
  overflow-y: auto;
  padding: 0 !important;
  height: 100% !important;
  display: flex;
  flex-direction: column;
}

.button-home {
  background: var(--primary);
}

input[type="search"] {
  all: unset !important;
  padding: 12px 0 !important;
}

input[type="date"] {
  /* font-family: "Helvetica Neue", sans-serif !important; */
  font-size: 15px !important;
}

input[type="search"]::placeholder {
  font-size: 15px !important;
}

.container-search-forum {
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  background: white !important;
  display: flex;
  text-align: center;
  width: 100% !important;
  height: 50px;
  border-radius: 30px !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px !important;
}

.container-search-home,
.container-search-market {
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  background: white !important;
  display: flex;
  text-align: center;
  width: 70% !important;
  height: 50px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

.search-input {
  border: none;
  background: transparent;
}

.search-input::placeholder {
  font-size: 15px;
  opacity: 0.8;
}

.filter-button-home {
  background: white;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  width: 50px;
  height: 50px;
}

.category-tabs-home::-webkit-scrollbar,
.category-tabs-market::-webkit-scrollbar {
  display: none !important;
}

.category-btn-home,
.category-btn-market,
.category-btn-list {
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  background-color: var(--secondary-gray);
  color: #666;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.category-btn-home.active,
.category-btn-market.active,
.category-btn-list.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary) !important;
  font-size: 16px;
}

.line-login {
  width: 100%;
  height: 1.8px;
  background-color: #d1d5db;
}

/*============== Toolbar ==========*/
ons-toolbar.container-toolbar {
  background: var(--primary-gradient) !important;
}

.empty-state i.ph.ph-chat-centered-dots,
.empty-state-my i.ph.ph-chats-circle-black,
.empty-comments i.ph.ph-chat-centered-dots {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/*============== FORM LAYOUT ASSET ==========*/
.form-add-asset,
.form-edit-asset,
.form-detail-asset {
  padding: 20px !important;
  margin-top: 1rem !important;
}

/*==============  LAYOUT SETTING ==========*/
.body-content-update-password,
.body-content-forgot-password,
.body-content-verifikasi-code,
.body-content-set-password {
  margin-top: 1.5rem !important;
  background: white !important;
  /* border-radius: 25px 25px 0 0 !important; */
  z-index: 1;
  position: relative;

  height: 100vh;
  overflow: hidden;
}

/* Card style */
.ons-card {
  border-radius: 16px;
  border-top: 1px solid #ecedee !important;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 1rem 1rem;
}

/* ============== TOAST ==================== */
.toast-success .toast {
  background-color: #73b573;
}

.toast-error .toast {
  background-color: #ca5e58;
}

.toast-warning .toast {
  background-color: #f9a937;
}

.toast-info .toast {
  background-color: #59abc3;
}

/* ========================  N O T I F I C A T I O N   B A D G E  ======================== */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  font-size: 10px;
  font-weight: 600;
  /* padding: 2px 6px; */
  border-radius: 10px;
  min-width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ========================  N O T I F I C A T I O N   L I S T  ======================== */
.notification-list {
  max-width: 100%;
  overflow-x: hidden;
}

.notification-item {
  transition: all 0.3s ease;
}

.notification-item:hover {
  transform: translateX(5px);
}

.notification-item.unread {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================  C U S T O M   T O A S T  ======================== */
.custom-notification-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 90%;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.custom-notification-toast i.ph-x:hover {
  color: #333 !important;
}

/* ========================  R E S P O N S I V E  ======================== */
@media (max-width: 576px) {
  .notification-badge {
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    top: -6px;
    right: -6px;
  }

  .custom-notification-toast {
    max-width: 95%;
    padding: 12px 15px;
  }
}

/* disabled option */
option:disabled {
  color: #a4aab6 !important;
  pointer-events: none;
  opacity: 0.5;
}

/*  =================  Carousel Styles ================= */
.carousel-indicators {
  position: absolute;
  top: 20rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/*  =================  Card detail Styles ================= */
.product-title {
  font-size: 1.875rem; /* 30px */
  line-height: 2.25rem; /* 36px */
  color: #1e293b;
  text-transform: capitalize;
  font-weight: 700 !important;
  padding: 0 !important;
  margin: 10px 0 !important;
}

.product-price {
  font-weight: 700 !important;
  font-size: 1.875rem; /* 30px */
  line-height: 2.25rem; /* 36px */
  color: var(--primary);
}

.info-card {
  background: linear-gradient(to bottom right, #faf5ff, #f8fafc);
  border-radius: 1rem; /* 16px */
  padding: 5px 1.25rem; /* 20px */
  margin-bottom: 1.5rem; /* 24px */
  border: 1px solid #f3e8ff; /* border-purple-100 */
  /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-row {
  display: flex;
  align-items: flex-start; /* items-start */
  justify-content: space-between;
  border-bottom: 1px solid #f3e8ff;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.75rem; /* text-xs = 12px */
  font-weight: 600; /* font-semibold */
  color: #64748b; /* text-slate-500 */
  text-transform: uppercase; /* uppercase */
  letter-spacing: 0.05em; /* tracking-wide */
  margin-bottom: 0.25rem; /* mb-1 = 4px */
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  padding: 0 !important;
  margin: 10px 0 0 0 !important;
  line-height: 1.5rem; /* leading-6 = 24px */
}

/* .nav-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
} */

.nav-btn {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:active {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ================= New Post comunity ================ */
.required-indicator {
  color: red;
}

/* ================================== QUILL EDITOR GLOBAL STYLES ================================== */
.editor-wrapper {
  position: relative;
}

.ql-toolbar.ql-snow {
  border: 2px solid #e5e7eb !important;
  border-radius: 1rem 1rem 0 0;
  background: var(--secondary);
  padding: 6px;
}

.ql-container.ql-snow {
  border-radius: 1rem 1rem 0 0;
  background: var(--secondary);
  padding: 6px;
}

.ql-editor {
  min-height: 120px;
  max-height: 180px;
  overflow-y: auto;
  padding: 12px 15px;
}

.ql-editor.ql-blank::before {
  color: #999;
  font-style: normal;
  font-size: 15px;
}

.ql-toolbar button {
  width: 26px !important;
  height: 26px !important;
  padding: 2px !important;
}

.ql-toolbar button svg {
  width: 14px !important;
  height: 14px !important;
}

.ql-toolbar .ql-picker {
  font-size: 12px;
  height: 26px;
}

.ql-snow .ql-stroke {
  stroke: #555;
  stroke-width: 2;
}

.ql-snow .ql-fill {
  fill: #555;
}

.ql-toolbar.ql-snow .ql-picker-label {
  padding: 2px 4px;
  font-size: 12px;
  line-height: 22px;
}

.ql-toolbar.ql-snow .ql-picker-options {
  font-size: 12px;
}

.ql-picker.ql-expanded .ql-picker-label {
  border-color: #ccc;
}

.ql-toolbar .ql-header .ql-picker-item[data-value="1"]::before,
.ql-toolbar .ql-header .ql-picker-item[data-value="2"]::before,
.ql-toolbar .ql-header .ql-picker-item[data-value="3"]::before {
  font-size: 14px !important;
}

/* Error state untuk Quill */
.editor-error .ql-container,
.editor-error .ql-toolbar {
  border-color: #f44336 !important;
}

/* Circle background decorations */
.decor-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  /* full rounded */
}

/* Dari w-40 = 10rem = 160px, h-40 sama */
.circle-1 {
  width: 160px;
  height: 160px;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

/* Dari w-32 = 8rem = 128px, h-32 sama */
.circle-2 {
  width: 128px;
  height: 128px;
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}

/* custome home, forum, market, setting */
.circle-1-custom {
  width: 230px;
  height: 230px;
  top: 0;
  right: -10px;
  transform: translate(50%, -50%);
}

.circle-2-custom {
  width: 200px;
  height: 200px;
  top: -50px;
  left: 0;
  transform: translate(-50%, 50%);
}

/* custome button */
.circle-1-button {
  width: 120px;
  height: 120px;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.circle-2-button {
  width: 200px;
  height: 200px;
  bottom: 0;
  left: 40px;
  transform: translate(-50%, 50%);
}

/* Custome tabs */
.circle-1-tabs {
  width: 90px;
  height: 90px;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

/* =================== ✅ TAGIFY STYLES - FIXED FOR MOBILE =====================*/
.tags-container {
  margin-bottom: 16px;
}

.tagify {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  min-height: 48px;
  background: white;
}

/* ✅ TAG - Direct primary background (no hover needed) */
.tagify__tag {
  z-index: auto !important;
  background: var(--primary) !important;
  color: white !important;
  border-radius: 12px !important;
  margin: 4px 4px 0 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: none !important;
}

/* ✅ Remove button always visible */
.tagify__tag__removeBtn {
  color: white !important;
  opacity: 1 !important;
  margin-left: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.tagify__tag__removeBtn:after {
  content: "×";
}

/* ✅ Tag text */
.tagify__tag-text {
  color: white !important;
}

/* ✅ Input placeholder */
.tagify__input {
  min-width: 120px;
  padding: 6px;
  color: #333;
}

.tagify__input::before {
  color: #999;
}

/* ✅ Dropdown suggestions */
.tagify__dropdown {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tagify__dropdown__item {
  padding: 8px 12px;
  cursor: pointer;
}

.tagify__dropdown__item:hover,
.tagify__dropdown__item--active {
  background: #f5f5f5;
}

/* ✅ Counter */
.tag-counter {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  text-align: right;
}

.tag-counter.text-success {
  color: #28a745;
  font-weight: 500;
}

.tag-counter.text-warning {
  color: #ff9800;
  font-weight: 500;
}

.tag-counter.text-danger {
  color: #f44336;
  font-weight: 500;
}
