/* SimpViewer - Princess Luxury Theme
   Drop this in as /var/www/html/style.css
*/

:root {
  --bg-deep: #050305;
  --bg-velvet: #11060d;
  --bg-plum: #2a0719;
  --bg-card: rgba(255, 255, 255, 0.085);
  --bg-card-strong: rgba(255, 255, 255, 0.125);
  --border-soft: rgba(255, 255, 255, 0.14);
  --border-pink: rgba(255, 209, 232, 0.42);
  --text-main: #fff8fd;
  --text-soft: #f7c5dd;
  --text-muted: #c990ad;
  --pink: #ffd1e8;
  --pink-hot: #f9a8d4;
  --pink-deep: #8b2d5d;
  --danger-bg: #3b1f1f;
  --danger-text: #fecaca;
  --danger-border: #f87171;
  --shadow-glow: 0 24px 80px rgba(249, 168, 212, 0.20);
  --shadow-dark: 0 28px 90px rgba(0, 0, 0, 0.48);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 4%, rgba(255, 209, 232, 0.42), transparent 26%),
    radial-gradient(circle at 12% 18%, rgba(249, 168, 212, 0.16), transparent 30%),
    linear-gradient(145deg, var(--bg-plum), var(--bg-velvet) 52%, var(--bg-deep));
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at top, black, transparent 72%);
}

a {
  color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff3fb;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(17, 6, 13, 0.82);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.28);
}

.brand {
  color: var(--pink);
  font-weight: 900;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-shadow: 0 0 22px rgba(249,168,212,0.25);
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  border: 1px solid var(--border-soft);
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text-main);
  background: rgba(255,255,255,0.075);
  font-size: 13px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.site-header nav a:hover {
  transform: translateY(-1px);
  border-color: var(--border-pink);
  background: rgba(255, 209, 232, 0.14);
}

/* Layout */

.container {
  width: min(1120px, calc(100% - 30px));
  margin: 26px auto 42px;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.065));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,209,232,0.18), transparent 32%),
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 42%);
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.card h1 {
  font-size: clamp(34px, 5vw, 56px);
  max-width: 760px;
}

.card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.card p {
  color: var(--text-soft);
  max-width: 780px;
}

/* Home page hero feel */

.container > .card:first-child {
  padding: clamp(26px, 5vw, 54px);
  min-height: 280px;
  display: grid;
  align-content: center;
}

.container > .card:first-child::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,209,232,0.42), rgba(249,168,212,0.12) 45%, transparent 70%);
  filter: blur(1px);
}

.container > .card:first-child h1 {
  color: #fff;
  text-shadow: 0 16px 45px rgba(0,0,0,0.35);
}

.container > .card:first-child p {
  font-size: 18px;
}

/* Forms */

.form {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea,
button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(5, 3, 5, 0.62);
  color: var(--text-main);
  padding: 11px 12px;
  font-size: 15px;
  outline: none;
}

input,
select,
textarea {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(249,168,212,0.16);
}

.form input,
.form select,
.form textarea {
  width: 100%;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

button,
.button {
  cursor: pointer;
  background: var(--pink);
  color: #31051c;
  border: 1px solid var(--pink);
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(249,168,212,0.24);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  color: #31051c;
  box-shadow: 0 18px 40px rgba(249,168,212,0.32);
}

.button.secondary,
button.secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
  border-color: var(--border-soft);
  box-shadow: none;
}

.button.secondary:hover,
button.secondary:hover {
  color: var(--text-main);
  border-color: var(--border-pink);
  background: rgba(255,209,232,0.13);
}

.button.danger,
button.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
  box-shadow: none;
}

.button.danger:hover,
button.danger:hover {
  color: var(--danger-text);
  background: #4b2424;
}

/* Messages */

.notice,
.error {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.notice {
  background: rgba(12, 37, 48, 0.86);
  border: 1px solid rgba(125, 211, 252, 0.42);
  color: #dff6ff;
}

.error {
  background: rgba(59, 31, 31, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.62);
  color: var(--danger-text);
}

/* Tables and dashboards */

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  text-align: left;
}

th {
  color: #fff3fb;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

td {
  color: var(--text-soft);
}

tr:hover td {
  background: rgba(255, 209, 232, 0.055);
}

code,
pre {
  background: rgba(5, 3, 5, 0.62);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff3fb;
}

code {
  padding: 2px 6px;
}

pre {
  padding: 14px;
  overflow: auto;
  max-height: 360px;
}

/* Upload / dashboard specialty */

.card strong {
  color: #fff;
}

.card p .button,
.card p button {
  margin-right: 8px;
  margin-bottom: 8px;
}

form[style*="display:inline"] {
  display: inline-flex !important;
  margin: 2px;
}

/* Footer */

.site-footer {
  color: var(--text-muted);
  padding: 28px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.14);
}

/* Viewer-adjacent polish */

img,
video {
  max-width: 100%;
}

::selection {
  background: rgba(249,168,212,0.36);
  color: #fff;
}

/* Responsive */

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    width: 100%;
    margin-left: 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  .container > .card:first-child {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 20px, 1120px);
    margin-top: 14px;
  }

  .site-header {
    padding: 12px;
  }

  .site-header nav a,
  .button,
  button {
    width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: 280px;
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .brand-logo {
    height: 44px;
    max-width: 210px;
  }
}
