/* ================= BASE ================= */

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto;
  background: #f7f8fa;
  color: #111;
}

/* ================= HEADER ================= */

.topbar {
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  font-size: 20px;
}

/* ================= NAVIGATION ================= */

.nav-right {
  display: flex;
  align-items: center;
}

.nav-right > * {
  padding: 6px 14px;
  position: relative;
  text-decoration: none;
  color: #555;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* vertical separator before every item except first */
.nav-right > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #ddd;
  opacity: 0.6;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

/* subtle animation */
.nav-right > *:hover::before {
  opacity: 0.9;
  background: #bbb;
}

/* hover */
.nav-right a:hover,
.nav-right button:hover {
  color: #111;
}

/* active page highlight */
.nav-right a.active {
  font-weight: 600;
  color: #2563ff;
}

.nav-right a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #2563ff;
  border-radius: 2px;
}

/* ================= LAYOUT ================= */

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
  margin-bottom: 24px;
  font-size: 28px;
}

/* ================= BUTTONS ================= */

.btn {
  
  background: #2563ff;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  display: inline-block;
  cursor: pointer;

  box-shadow: 0 8px 18px rgba(63, 99, 242, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;

}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(63, 99, 242, 0.45);

}

.btn.secondary {
  background: #f1f1f1;
  color: #111;
}

.btn.secondary:hover {
  background: #e5e7eb;
}

.btn.large {
  padding: 14px 22px;
  font-size: 16px;
}


/* ================= FORMS ================= */

.form {
  max-width: 480px;
}

.form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
}

.form input,
.form select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-top: 6px;
}

/* ================= AUTH ================= */

.auth-form input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  font-size: 16px;
}



/* ================= LOGO ANIMATION ================= */

.logo a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* underline */
.logo a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #2563ff;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

/* hover animation */
.logo a:hover {
  transform: translateY(-1px);
  color: #2563ff;
}

.logo a:hover::after {
  transform: scaleX(1);
}



.hidden {
  display: none !important;
}


/* ===== Layout ===== */
.admin-container {
  max-width: 1100px;
  margin: 40px auto;
}

.admin-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}



/* ================= STICKY SYSTEM (FIXED) ================= */

/* Page header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}


/* ================= ACCOUNT DROPDOWN ================= */

.account {
  position: relative;
}

.account-btn {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.account-btn:hover {
  background: #f7f7f7;
}


.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 200;
  padding: 8px 0;
}

.dropdown-item {
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-item:hover {
  background: #f5f6f8;
}

.dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 6px 0;
}

.dropdown-item.logout {
  color: #c62828;
  font-weight: 500;
}

.brand-item {
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-item::before {
  content: "🏢";
  font-size: 16px;
}


.status-select {
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 2px 4px;
}

.status-select:focus {
  outline: none;
  background: #f5f5f5;
  border-radius: 6px;
}



.notif-dot {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 9px;
  height: 9px;
  background: #ff3b30; /* iOS red */
  border-radius: 50%;
}



/* ================= UNREAD INDICATOR ================= */

/* Pulse animation */
.notif-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.6);
  animation: notif-pulse 1.6s infinite ease-out;
}

@keyframes notif-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}


/* ================= STAR RATING (GLOBAL SVG) ================= */

.mp-stars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mp-stars label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.mp-star-row {
  display: flex;
  gap: 8px;
}

.mp-star {
  width: 26px;
  height: 26px;
  cursor: pointer;

  fill: #e5e7eb;          /* empty */
  stroke: #cbd5e1;
  stroke-width: 1;

  transition:
    transform 0.15s ease,
    fill 0.15s ease,
    filter 0.15s ease;
}

.mp-star.filled {
  fill: #f5c542;          /* gold */
  stroke: #d4a017;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}

.mp-star:hover {
  transform: scale(1.15);
}


/* ================= LANGUAGE TOGGLE ================= */
.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.lang-btn:hover {
  background: #fafafa;
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 6px;
  z-index: 200;
}

.lang-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  font: inherit;
  text-align: left;
}

.lang-item:hover {
  background: #f4f6ff;
}

.lang-suffix { font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.lang-name { opacity: .9; }

.lang-flag {
  width: 18px;
  height: 18px;
  border-radius: 4px;      /* gives that nice “icon” feel */
  object-fit: cover;
  display: inline-block;
}
