/* =====================================================
   Admin Panel Styles — Aqua Chic Theme
   ===================================================== */

/* ====== SHARE TO X BUTTON ====== */
.share-x-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
  border: none;
  background: #000;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.share-x-btn:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.share-x-btn:active { transform: translateY(0); }

/* ====== LOGIN SCREEN ====== */
.login-screen {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.login-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ldc1 { width: 220px; height: 220px; background: rgba(186,230,253,.25); top: -80px; right: -60px; }
.ldc2 { width: 160px; height: 160px; background: rgba(251,207,232,.2); bottom: -50px; left: -40px; }

.login-badge {
  display: inline-block;
  background: var(--sky-100);
  color: var(--sky-500);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1.5px solid var(--sky-200);
}

.login-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--slate-700);
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.3;
}
.login-title span { color: var(--sky-500); }

.login-sub {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 32px;
}

.google-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--sky-200);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(186,230,253,.4);
  transition: all 0.18s;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}
.google-btn:hover {
  border-color: var(--sky-400);
  box-shadow: 0 6px 20px rgba(14,165,233,.18);
  transform: translateY(-1px);
}

/* ====== ADMIN UI ====== */
.admin-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 80px;
  display: none;
}

.section-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-sky);
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(14,165,233,.06);
}

.section-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--sky-600);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ====== FORM ====== */
.event-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--sky-500);
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  background: #fff;
  border: 1.5px solid var(--sky-200);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

.form-textarea {
  resize: vertical;
  min-height: 72px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-primary {
  background: var(--sky-500);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  box-shadow: 0 2px 10px rgba(14,165,233,.25);
  transition: all 0.18s;
}
.btn-primary:hover { background: var(--sky-600); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: #fff;
  color: var(--text-sub);
  border: 1.5px solid var(--sky-200);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.btn-secondary:hover { background: var(--sky-50); border-color: var(--sky-400); }

.btn-danger {
  background: rgba(229,62,62,.08);
  color: #e53e3e;
  border: 1.5px solid rgba(229,62,62,.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.btn-danger:hover { background: rgba(229,62,62,.15); }

.btn-edit {
  background: rgba(14,165,233,.08);
  color: var(--sky-600);
  border: 1.5px solid var(--sky-200);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.btn-edit:hover { background: var(--sky-100); }

/* ====== EVENTS TABLE ====== */
.events-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1.5px solid var(--border-sky);
}

table.events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.events-table th {
  background: var(--sky-50);
  color: var(--sky-600);
  font-weight: 900;
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
  border-bottom: 1.5px solid var(--border-sky);
}

.events-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sky-100);
  color: var(--text-main);
  font-weight: 700;
  vertical-align: middle;
}

.events-table tr:last-child td { border-bottom: none; }
.events-table tr:hover td { background: var(--sky-50); }

.cat-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.cat-pill.cat-concert  { background: rgba(229,62,62,.1);   color: var(--color-concert); }
.cat-pill.cat-ticket   { background: rgba(144,97,249,.1);  color: var(--color-ticket); }
.cat-pill.cat-event    { background: rgba(14,165,233,.1);  color: var(--color-event); }
.cat-pill.cat-release  { background: rgba(245,158,11,.1);  color: var(--color-release); }
.cat-pill.cat-media    { background: rgba(16,185,129,.1);  color: var(--color-media); }
.cat-pill.cat-birthday { background: rgba(236,72,153,.1);  color: var(--color-birthday); }
.cat-pill.cat-goods    { background: rgba(132,204,22,.1);  color: var(--color-goods); }
.cat-pill.cat-other    { background: rgba(107,114,128,.1); color: var(--color-other); }

/* ====== CATEGORY GUIDE ====== */
.cat-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.cat-label-row .form-label { margin-bottom: 0; }

.cat-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--sky-200);
  color: var(--sky-600);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}
.cat-info-btn:hover { background: var(--sky-300); }

.cat-guide-panel {
  margin-bottom: 8px;
  border: 1.5px solid var(--border-sky);
  border-radius: 10px;
  overflow: hidden;
  font-size: 11px;
}
.cat-guide-table {
  width: 100%;
  border-collapse: collapse;
}
.cat-guide-table th {
  background: var(--sky-50);
  padding: 5px 10px;
  font-weight: 900;
  color: var(--text-sub);
  text-align: left;
  border-bottom: 1px solid var(--border-sky);
}
.cat-guide-table td {
  padding: 5px 10px;
  color: var(--text-main);
  border-bottom: 1px solid var(--sky-100);
  vertical-align: middle;
}
.cat-guide-table tr:last-child td { border-bottom: none; }

.td-actions { display: flex; gap: 6px; }

.no-events-row td {
  text-align: center;
  padding: 28px;
  color: var(--text-mute);
  font-weight: 700;
}

/* ====== AI MODE TABS ====== */
.ai-mode-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ai-mode-tab {
  background: #fff;
  color: var(--text-sub);
  border: 1.5px solid var(--sky-200);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.ai-mode-tab:hover { background: var(--sky-50); border-color: var(--sky-400); }
.ai-mode-tab.active {
  background: var(--sky-500);
  color: #fff;
  border-color: var(--sky-500);
}

.ai-mode-panel { display: none; }
.ai-mode-panel.active { display: block; }

/* ====== AI SECTION ====== */
.ai-trigger-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ai-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.ai-draft-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.draft-card {
  background: var(--sky-50);
  border: 1.5px solid var(--border-sky);
  border-radius: 14px;
  padding: 14px 16px;
}

.draft-card-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.draft-card-meta {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-card-actions {
  display: flex;
  gap: 8px;
}

.btn-register {
  background: var(--sky-500);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.btn-register:hover { background: var(--sky-600); }

.btn-skip {
  background: #fff;
  color: var(--text-sub);
  border: 1.5px solid var(--sky-200);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.btn-skip:hover { background: var(--sky-50); }

/* ====== REQUESTS BADGE ====== */
.requests-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  margin-left: 4px;
}

/* ====== STATUS PILLS ====== */
.status-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.status-pending  { background: rgba(245,158,11,.12); color: #b45309; }
.status-approved { background: rgba(22,163,74,.1);   color: #16a34a; }
.status-rejected { background: rgba(229,62,62,.1);   color: #e53e3e; }

.btn-approve {
  background: rgba(22,163,74,.1);
  color: #16a34a;
  border: 1.5px solid rgba(22,163,74,.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-approve:hover { background: rgba(22,163,74,.18); }

.btn-reject {
  background: rgba(229,62,62,.08);
  color: #e53e3e;
  border: 1.5px solid rgba(229,62,62,.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.btn-reject:hover { background: rgba(229,62,62,.15); }

/* ====== HEADER ADMIN CONTROLS ====== */
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar-xs {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-300), var(--pink-300));
  flex-shrink: 0;
}
.user-email {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid var(--sky-200);
  color: var(--text-sub);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: background 0.18s;
}
.logout-btn:hover { background: var(--sky-50); }

/* Events filter row */
.events-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.events-filter-row .form-label {
  margin: 0;
  white-space: nowrap;
}

/* ====== TRANSLATION SECTION ====== */
.translation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.translation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky-50);
  border: 1.5px solid var(--sky-200);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 900;
  color: var(--sky-600);
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.translation-toggle:hover { background: var(--sky-100); }
.toggle-arrow { font-size: 10px; transition: transform 0.18s; }
.translation-toggle[aria-expanded="true"] .toggle-arrow { transform: rotate(180deg); }
.btn-retranslate-all { font-size: 12px; padding: 7px 14px; }
.translation-status-summary {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
}
.tx-ok   { background: rgba(22,163,74,.1);  color: #16a34a; }
.tx-warn { background: rgba(245,158,11,.12); color: #b45309; }

.lang-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--border-sky);
  padding-bottom: 8px;
}
.lang-tab {
  background: #fff;
  color: var(--text-sub);
  border: 1.5px solid var(--sky-200);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
}
.lang-tab:hover { background: var(--sky-50); border-color: var(--sky-400); }
.lang-tab.active { background: var(--sky-500); color: #fff; border-color: var(--sky-500); }

.translation-panel {
  background: var(--sky-50);
  border: 1.5px solid var(--border-sky);
  border-radius: 14px;
  padding: 14px 16px;
}
.lang-panel { display: none; }
.lang-panel.active { display: grid; gap: 10px; }

.btn-retranslate-lang {
  background: #fff;
  color: var(--text-sub);
  border: 1.5px solid var(--sky-200);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: all 0.18s;
  width: fit-content;
}
.btn-retranslate-lang:hover { background: var(--sky-50); border-color: var(--sky-400); }
.btn-retranslate-lang:disabled { opacity: 0.6; cursor: not-allowed; }

.tx-dot { font-size: 12px; line-height: 1; }
.tx-dot-ok   { color: #16a34a; }
.tx-dot-warn { color: #f59e0b; }

/* ====== IMAGE UPLOAD UI ====== */
.img-upload-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0;
}

.img-upload-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

.img-upload-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.img-upload-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--sky-300);
  color: var(--sky-600);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  background: #fff;
  transition: all 0.18s;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.28);
}
.img-upload-add-btn:hover {
  background: var(--sky-50);
  border-color: var(--sky-500);
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.28);
}

.img-upload-hint {
  font-size: 10px;
  color: var(--text-mute);
  font-weight: 700;
}

.img-preview-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.img-preview-item {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.img-preview-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--sky-200);
  display: block;
}

.img-preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  border: 2px solid #fff;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.img-upload-error {
  font-size: 11px;
  color: #e53e3e;
  font-weight: 700;
}
