﻿:root {
  --ink: #0f1638;
  --muted: #5c6593;
  --line: #d8e0ff;
  --brand: #245cf4;
  --brand2: #00a8c9;
  --danger: #d83f63;
  --bg: #eef3ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 5% 0%, #dce8ff, transparent 25%), var(--bg);
  color: var(--ink);
}

.admin-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.admin-card {
  width: min(1100px, 100%);
  background: #ffffffdd;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 18px 40px rgba(15, 22, 56, 0.12);
  backdrop-filter: blur(6px);
}

h1, h2 { margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.login-box,
.box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quick-actions {
  margin-bottom: 1rem;
}

.quick-buttons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.quick-link {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.62rem 0.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand2));
}

.quick-link.secondary {
  background: #eef3ff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.publish-link {
  display: inline-block;
  text-align: center;
  margin-top: 0.6rem;
  width: 100%;
}

label {
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: block;
}

input,
textarea,
select,
button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  margin-top: 0.35rem;
}

button {
  cursor: pointer;
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  border: none;
  color: #fff;
  font-weight: 800;
  margin-top: 0.8rem;
}

button.danger {
  width: auto;
  background: var(--danger);
  padding: 0.55rem 0.9rem;
}

small { color: var(--muted); display: block; margin-top: 0.6rem; }

.hidden { display: none; }

.head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
}

.post-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  display: grid;
  gap: 0.4rem;
  background: #fbfcff;
}

.post-item .actions {
  display: flex;
  gap: 0.5rem;
}

.post-item .actions button {
  margin-top: 0;
  width: auto;
  padding: 0.45rem 0.8rem;
}

.post-item .actions .remove {
  background: var(--danger);
}

.post-item img,
.post-item video {
  max-width: 280px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  min-width: 260px;
  max-width: 90vw;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #152247;
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 22, 56, 0.25);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: linear-gradient(120deg, #0f9b5f, #14b86b); }
.toast.error { background: linear-gradient(120deg, #ca3f5f, #df5776); }

.floating-site-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 998;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 28px rgba(36, 92, 244, 0.35);
}

@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; }
  .quick-buttons { flex-direction: column; }
  .quick-link { text-align: center; }
  .floating-site-link {
    left: 16px;
    right: 16px;
    text-align: center;
  }
}
