/* ============================================================
   RESET & TOKENS  (kept identical to the main site for consistency)
   ============================================================ */
:root {
  --bg: #4a4a4a;
  --bg-deep: #3c3c3c;
  --card-bg: #565656;
  --card-border: #8a8a8a;
  --text-light: #f2f0eb;
  --text-muted: #cfcdc6;
  --icon-color: #d8d6cf;
  --icon-active: #ffffff;
  --success: #7fd99a;
  --fail: #e2897a;

  /* layout sizes */
  --topbar-h: 56px;
  --sidebar-w: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text-light);
  font-family:
    "Trebuchet MS",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   CUSTOM SCROLLBAR — thin, blends with bg, barely visible
   ============================================================ */
* {
  scrollbar-width: thin;
  scrollbar-color: #5e5e5e transparent;
}
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #5e5e5e;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #787878;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ============================================================
   PAGE SHELL — nav stays put, content area scrolls
   ============================================================ */
.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================================
   MOBILE TOPBAR
   ============================================================ */
.topbar {
  flex-shrink: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   MAIN ROW — sidebar | content
   ============================================================ */
.main-row {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR (hidden on mobile)
   ============================================================ */
.sidebar {
  display: none;
}

/* ============================================================
   SHARED ICON STYLES
   ============================================================ */
.logo-icon {
  color: var(--icon-active);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.logo-icon svg {
  width: 28px;
  height: 28px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-icon {
  position: relative;
  background: none;
  border: none;
  color: var(--icon-color);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s;
}
.side-icon svg {
  width: 22px;
  height: 22px;
}
.side-icon:hover {
  color: var(--icon-active);
  background: rgba(255, 255, 255, 0.08);
}
.side-icon.active {
  color: var(--icon-active);
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   TOOLTIPS (sidebar only — the only place they're used here)
   ============================================================ */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  white-space: nowrap;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  z-index: 100;
}
.sidebar [data-tooltip]::after {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}
.sidebar [data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.app {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px;
}

.feedback-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 0 64px;
}
.feedback-content h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--icon-active);
  line-height: 1.2;
}
.feedback-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* ============================================================
   FEEDBACK FORM
   ============================================================ */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field .optional {
  text-transform: none;
  font-weight: 400;
  opacity: 0.7;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-light);
  background: var(--bg);
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--icon-active);
}
.form-field textarea {
  resize: vertical;
  min-height: 220px;
  line-height: 1.5;
}

.rating-row {
  display: flex;
  gap: 8px;
}
.rating-star {
  background: none;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.rating-star svg {
  width: 20px;
  height: 20px;
}
.rating-star:hover {
  border-color: var(--icon-active);
  color: var(--icon-active);
}
.rating-star.selected {
  background: var(--success);
  border-color: var(--success);
  color: #1f3d2b;
}

.submit-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8e8e8;
  color: #3a3a3a;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s;
}
.submit-btn:hover {
  background: #dcdcdc;
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.submit-btn svg {
  width: 18px;
  height: 18px;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success {
  color: var(--success);
}
.form-status.error {
  color: var(--fail);
}

@media (min-width: 900px) {
  .topbar {
    display: none;
  }

  .page {
    flex-direction: column;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: var(--sidebar-w);
    height: 100vh;
    flex-shrink: 0;
    padding: 20px 0;
    background: var(--bg-deep);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
  }

  .main-row {
    flex-direction: row;
  }

  .app {
    padding-left: calc(var(--sidebar-w) + 40px);
    padding-right: 40px;
  }

  .feedback-content {
    padding: 56px 0 80px;
  }
  .feedback-content h1 {
    font-size: 2rem;
  }
}
.side-space-middle {
  flex: 1;
}
