:root {
  --admin-bg: #f5f7fb;
  --panel-bg: #ffffff;
  --line: #e5e7eb;
  --text: #202124;
  --muted: #5f6368;
  --brand: #f57c00;
  --brand-dark: #e06f00;
  --brand-soft: #fff4e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--admin-bg);
}

.admin-bg {
  background:
    radial-gradient(circle at 2% 0%, #ffe2c4 0, transparent 30%),
    radial-gradient(circle at 100% 0%, #dceafe 0, transparent 34%),
    var(--admin-bg);
  min-height: 100vh;
}

.start-view .container {
  max-width: 980px;
}

.start-brand {
  text-align: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: #fff;
  color: #35363a;
  border: 1px solid #eceef3;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.start-card {
  border-radius: 24px;
  background:
    linear-gradient(120deg, #ffffff 0%, #fff9f2 45%, #fefefe 100%);
}

.start-kicker {
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: 700;
}

.start-title {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 3.7vw, 2.8rem);
  line-height: 1.2;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-toolbar-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.admin-toolbar-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.admin-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #6e3900;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
}

.sso-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.sso-user-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.sso-logout-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sso-logout-link:hover {
  background: #ffe4e6;
  color: #881337;
}

.panel-card {
  border-radius: 18px;
  background: var(--panel-bg);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.menu-item.active {
  background: var(--brand-soft);
  color: #653200;
  font-weight: 600;
}

.menu-item:focus-visible {
  outline: 2px solid rgba(245, 124, 0, 0.45);
  outline-offset: 2px;
}

.entries-table thead th {
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.entries-table tbody tr:hover {
  background: #fafbfc;
}

.entries-table tbody tr[draggable="true"] {
  cursor: grab;
}

.entries-table tbody tr.dragging {
  opacity: 0.55;
}

.entries-table code {
  font-size: 0.8rem;
}

.menu-drag-handle {
  letter-spacing: -0.08em;
  color: #64748b;
  user-select: none;
  cursor: grab;
}

.count-badge {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.action-dock {
  border-radius: 16px;
}

.btn-blogger-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-blogger-primary:hover,
.btn-blogger-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-blogger-ghost {
  border: 1px solid #e1e4ea;
  background: #fff;
  color: #374151;
  font-weight: 600;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-blogger-ghost:hover,
.btn-blogger-ghost:focus {
  background: #f8fafc;
  border-color: #cfd6de;
  color: #1f2937;
}

.form-control,
.form-select {
  border-color: #dbe1ea;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #f6b873;
  box-shadow: 0 0 0 0.25rem rgba(245, 124, 0, 0.16);
}

.quill-editor {
  min-height: 280px;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
  border-color: #dbe1ea;
}

.ql-toolbar.ql-snow {
  border-radius: 12px 12px 0 0;
}

.status-pill {
  min-width: 98px;
  display: inline-block;
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
}

.status-draft {
  background: #fff2cc;
  color: #8a5a00;
}

.status-published {
  background: #dff7e6;
  color: #176a3a;
}

.content-type-pill {
  min-width: 90px;
  display: inline-block;
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
}

.type-post {
  background: #e9f5ff;
  color: #0f517d;
}

.type-page {
  background: #f5edff;
  color: #59309b;
}

.swal2-popup {
  border-radius: 16px !important;
}

@media (max-width: 992px) {
  .admin-topbar {
    position: static;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar-right {
    margin-left: 0;
    align-items: stretch;
  }

  .admin-auth,
  .admin-actions {
    justify-content: flex-start;
  }

  .start-title {
    font-size: 1.9rem;
  }
}
