/* Inter — self-hosted variable font (latin + greek) */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400 900;
font-display: swap;
src: url('../assets/fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400 900;
font-display: swap;
src: url('../assets/fonts/inter-greek.woff2') format('woff2');
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 100 700;
font-display: swap;
src: url('../assets/fonts/material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled {
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Global styles */
 /* =========================================
   WEST PhotoApp - Global Design System
   ========================================= */

:root {
  color-scheme: dark;

  --west-bg: #06121D;
  --west-bg-gradient: #0B1D2C;

  --west-line: #5BB3CE;
  --west-accent: #8CBCD0;

  --west-glow-teal: #148B80;
  --west-glow-blue: #127EE7;

  --west-text: #EAF5FA;
  --west-muted: #8DA4B5;

  --west-border: rgba(91, 179, 206, 0.25);
  --west-surface: rgba(11, 29, 44, 0.92);
  --west-surface-hover: rgba(20, 48, 65, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  font-family: 'Inter', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--west-text);
  background: linear-gradient(
    135deg,
    var(--west-bg),
    var(--west-bg-gradient)
  );
}

body {
margin: 0;
min-width: 320px;
min-height: 100vh;
font-family: 'Inter', Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
}

button, input, select, textarea {
font: inherit;
}

button {
cursor: pointer;
}

a {
color: inherit;
}

[hidden] {
display: none !important;
}

/* Login page */
.login-page {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
min-height: 100vh;
background: #fff;
}

.login-visual {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100vh;
overflow: hidden;
padding: 42px 54px;
color: #fff;
background:
radial-gradient(ellipse at 12% 85%, rgba(18, 126, 119, .35), transparent 48%),
linear-gradient(145deg, #061b2c 0%, #0a3044 58%, #0d494d 100%);
}

.login-visual::after {
content: "";
position: absolute;
width: 340px;
height: 340px;
right: -150px;
bottom: -150px;
border: 1px solid rgba(126, 219, 199, .18);
border-radius: 50%;
box-shadow: 0 0 0 35px rgba(126, 219, 199, .035),
0 0 0 75px rgba(126, 219, 199, .025);
pointer-events: none;
}

.login-brand {
display: flex;
align-items: center;
gap: 12px;
font-size: 21px;
font-weight: 750;
letter-spacing: .04em;
}

.brand-mark {
display: grid;
place-items: center;
width: 40px;
height: 40px;
border: 1px solid rgba(126, 219, 199, .55);
border-radius: 12px;
color: #8be0cd;
font-size: 21px;
font-weight: 800;
}

.login-hero {
position: relative;
z-index: 1;
max-width: 540px;
margin: auto 0;
padding: 65px 0;
}

.login-hero h2 {
margin: 0 0 22px;
font-size: clamp(38px, 4vw, 60px);
font-weight: 750;
line-height: 1.13;
letter-spacing: -.045em;
}

.login-hero p {
max-width: 450px;
margin: 0;
color: #c5d5de;
font-size: 16px;
line-height: 1.9;
}

.login-visual-foot {
position: relative;
z-index: 1;
color: #a6bec8;
font-size: 12px;
letter-spacing: .06em;
}

.login-panel {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
padding: 48px;
background: #fff;
}

.login-content {
width: 100%;
max-width: 390px;
}

.eyebrow {
margin-bottom: 10px;
color: #087e76;
font-size: 12px;
font-weight: 750;
letter-spacing: .13em;
text-transform: uppercase;
}

.login-content h1 {
margin: 0 0 12px;
color: #102b3c;
font-size: 34px;
font-weight: 750;
letter-spacing: -.04em;
}

.muted {
margin: 0 0 28px;
color: #687985;
font-size: 14px;
line-height: 1.8;
}

.login-form {
display: flex;
flex-direction: column;
gap: 20px;
}

.field {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}

.field-label {
color: #263e4c;
font-size: 13px;
font-weight: 650;
}

.input, .select {
display: block;
width: 100%;
min-height: 47px;
padding: 11px 13px;
border: 1px solid #d5dfe4;
border-radius: 9px;
outline: none;
background: #fff;
color: #183140;
transition: border-color .15s, box-shadow .15s;
}

.input::placeholder {
color: #9aa8b0;
}

.input, .select {
border-color: #148b80;
box-shadow: 0 0 0 3px rgba(20, 139, 128, .12);
}

.password-wrap {
position: relative;
display: flex;
align-items: center;
}

.password-wrap .input {
padding-right: 95px;
}

.show-password {
position: absolute;
right: 12px;
padding: 5px;
border: 0;
background: transparent;
color: #087e76;
font-size: 12px;
font-weight: 700;
}

.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
min-height: 48px;
padding: 12px 18px;
border: 1px solid transparent;
border-radius: 9px;
font-size: 14px;
font-weight: 700;
transition: background .15s, transform .15s, box-shadow .15s;
}

.button-primary {
background: #087e76;
color: #fff;
box-shadow: 0 5px 12px rgba(8, 126, 118, .16);
}

.button-primary {
background: #06685f;
box-shadow: 0 7px 17px rgba(8, 126, 118, .22);
}

.button-primary {
transform: translateY(1px);
}

.button-wide {
width: 100%;
margin-top: 4px;
}

.button {
  cursor: pointer;
  opacity: 1;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.login-footer {
margin-top: 28px;
padding-top: 20px;
border-top: 1px solid #e9eef1;
color: #75848c;
font-size: 12px;
line-height: 1.8;
}

.login-footer a {
color: #087e76;
font-weight: 700;
text-decoration: none;
}

.login-footer a {
text-decoration: underline;
}

.notice {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 14px;
border: 1px solid transparent;
border-radius: 9px;
font-size: 12px;
line-height: 1.7;
}

.notice-warning {
border-color: #f3d7a1;
background: #fff9eb;
color: #805b17;
}

.section-gap {
margin-bottom: 22px;
}

/* Notification messages */
#notifications {
position: fixed;
top: 18px;
right: 18px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 10px;
width: min(380px, calc(100vw - 36px));
}

#notifications > * {
border-radius: 10px;
box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

/* Responsive */
@media (max-width: 800px) {
.login-page {
grid-template-columns: 1fr;
}

.login-visual {
    min-height: auto;
    padding: 28px 26px;
}

.login-hero {
    padding: 46px 0 30px;
}

.login-hero h2 {
    font-size: 38px;
}

.login-visual-foot {
    padding-top: 8px;
}

.login-panel {
    padding: 38px 24px 48px;
}

}

@media (max-width: 420px) {
.login-visual {
padding: 24px 20px;
}

.login-hero h2 {
    font-size: 33px;
}

.login-panel {
    padding: 32px 20px 40px;
}

}

/* ===== WEST PhotoApp - Login refresh ===== */
.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 0;
  overflow: hidden;
  background: #f7f9fc;
}

.login-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  color: #fff;
  background-color: #08243a;
  background-image:
    linear-gradient(135deg, rgba(5, 24, 41, .48), rgba(5, 24, 41, .82)),
    url('/assets/images/login-background.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 14px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 23px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.login-hero {
  width: min(100%, 600px);
  margin: auto 0;
  padding: 68px 0;
}

.login-hero h2 {
  max-width: 620px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.login-hero p {
  max-width: 470px;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.8;
}

.login-visual-foot {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .04em;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 64px);
  background: #fff;
}

.login-content {
  width: 100%;
  max-width: 420px;
  margin: auto;
}

.login-content .eyebrow {
  margin-bottom: 12px;
  color: #087e76;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.login-content h1 {
  margin: 0 0 12px;
  color: #10283c;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.login-content > .muted {
  margin-bottom: 32px;
  color: #687787;
  font-size: 14px;
  line-height: 1.75;
}

.login-form {
  display: grid;
  gap: 22px;
}

.login-form .field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.login-form .field-label {
  color: #25394b;
  font-size: 13px;
  font-weight: 700;
}

.login-form .input,
.login-form .select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  color: #182c3d;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login-form .input::placeholder {
  color: #9aa7b4;
}

.login-form .input:focus,
.login-form .select:focus {
  border-color: #087e76;
  outline: none;
  box-shadow: 0 0 0 3px rgba(8,126,118,.12);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap .input {
  padding-right: 94px;
}

.show-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 4px;
  color: #087e76;
  font-size: 12px;
  font-weight: 750;
}

.show-password:hover {
  color: #075f5a;
}

.login-form .button-wide {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease;
}

.login-form .button-wide:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8,126,118,.18);
}

.login-form .button-wide:disabled {
  cursor: wait;
  opacity: .65;
}

.login-footer {
  margin-top: 26px;
  color: #85919d;
  font-size: 11px;
  line-height: 1.7;
}

.login-footer a {
  display: inline-block;
  margin: 0 3px;
}

.login-content .notice {
  border-radius: 10px;
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  }

  .login-visual {
    padding: 32px;
  }

  .login-panel {
    padding: 32px 26px;
  }
}

@media (max-width: 680px) {
  .login-page {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .login-visual {
    min-height: auto;
    padding: 24px 24px 30px;
  }

  .login-brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .login-hero {
    padding: 36px 0 20px;
  }

  .login-hero h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .login-hero p {
    font-size: 14px;
  }

  .login-visual-foot {
    font-size: 10px;
  }

  .login-panel {
    padding: 36px 24px 42px;
  }

  .login-content > .muted {
    margin-bottom: 26px;
  }
}

/* ===== WEST PhotoApp - Dark Centered Card Login ===== */

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(20, 48, 70, 0.45) 0%, transparent 60%),
    linear-gradient(135deg, #06111a 0%, #0b1d2c 50%, #06121d 100%);
}

.login-visual {
  display: none !important;
}

.login-panel {
  width: 100%;
  max-width: 440px;
  padding: 0;
  background: transparent;
}

.login-content {
  width: 100%;
  max-width: 100%;
  padding: 40px 36px;
  border-radius: 20px;
  background: rgba(13, 24, 35, 0.85);
  border: 1px solid rgba(82, 117, 142, 0.25);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

/* WEST logo */
.login-content .login-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.login-content .login-brand img {
  display: block;
  max-height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

.login-content .eyebrow {
  display: none;
}

.login-content h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-content > .muted {
  margin: 0 0 28px;
  color: #8da4b5;
  font-size: 13.5px;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.login-form .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-form .field-label {
  color: #a1b8c7;
  font-size: 12.5px;
  font-weight: 600;
}

.login-form .input,
.login-form .select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(82, 117, 142, 0.35);
  border-radius: 10px;
  background: rgba(8, 16, 24, 0.6);
  padding: 0 14px;
  color: #e3edf5;
  font-size: 14px;
  transition: all 0.2s ease;
}

.login-form .input::placeholder {
  color: #536979;
}

.login-form .input:focus,
.login-form .select:focus {
  border-color: #5bb3ce;
  outline: none;
  background: rgba(10, 20, 30, 0.85);
  box-shadow: 0 0 0 3px rgba(91, 179, 206, 0.15);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap .input {
  padding-right: 90px;
}

.show-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 6px;
  color: #79a1b8;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.show-password:hover {
  color: #9cd4e6;
}

/* Login button */
.login-form .button-wide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #8cbcd0 0%, #a4cfde 100%);
  color: #0b1a26;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(140, 188, 208, 0.25);
}

.login-form .button-wide:hover:not(:disabled) {
  background: linear-gradient(135deg, #a0cbdc 0%, #b8e1f0 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(140, 188, 208, 0.35);
}

.login-form .button-wide:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Footer */
.login-content .login-footer {
  margin-top: 22px;
  padding-top: 0;
  border-top: none;
  color: #6a8292;
  font-size: 12px;
  text-align: center;
}

.login-content .login-footer a {
  color: #8cbcd0;
  text-decoration: none;
  font-weight: 600;
}

.login-content .login-footer a:hover {
  text-decoration: underline;
}

/* Demo notice */
.login-content .notice {
  text-align: left;
}

/* Mobile */
@media (max-width: 480px) {
  .login-page {
    padding: 16px;
  }

  .login-content {
    padding: 30px 22px;
  }
}

/* ===== WEST PhotoApp - Final Login Design ===== */

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 90%, rgba(0, 100, 160, .27), transparent 48%),
    radial-gradient(ellipse at 50% 40%, rgba(25, 55, 75, .35), transparent 65%),
    linear-gradient(120deg, #101c27 0%, #172633 50%, #101b26 100%);
}

.login-background-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .19;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(135, 174, 196, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 174, 196, .10) 1px, transparent 1px),
    radial-gradient(circle at 28% 28%, transparent 0 90px, rgba(139, 180, 205, .22) 91px 92px, transparent 93px),
    radial-gradient(circle at 72% 35%, transparent 0 145px, rgba(139, 180, 205, .20) 146px 147px, transparent 148px);
  background-size: 70px 70px, 70px 70px, 100% 100%, 100% 100%;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.login-visual {
  display: none !important;
}

.login-shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.login-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-logo img {
  display: block;
  width: auto;
  max-width: 340px;
  max-height: 105px;
  object-fit: contain;
}

.login-panel {
  width: 100%;
  padding: 0;
  background: transparent;
}

.login-content {
  width: 100%;
  max-width: 100%;
  padding: 32px 36px 35px;
  border-radius: 25px;
  background: rgba(22, 35, 48, .91);
  border: 1px solid rgba(111, 153, 180, .20);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  text-align: center;
}

.login-content .login-brand,
.login-content .eyebrow {
  display: none !important;
}

.login-content h1 {
  margin: 0 0 5px;
  color: #f3f6f8;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.login-content > .muted {
  margin: 0 0 30px;
  color: #c0cbd3;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
  text-align: left;
}

.login-form .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-form .field-label {
  color: #d1dbe2;
  font-size: 14px;
  font-weight: 500;
}

.login-input-wrap {
  width: 100%;
  min-height: 49px;
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #83b4d1;
  border-radius: 13px;
  background: rgba(37, 55, 70, .75);
  box-shadow: 0 0 0 1px rgba(120, 174, 207, .08);
  transition: border-color .2s, box-shadow .2s;
}

.login-input-wrap:focus-within {
  border-color: #b1d9ef;
  box-shadow: 0 0 0 3px rgba(124, 184, 218, .15);
}

.login-input-wrap .input {
  width: 100%;
  min-width: 0;
  height: 45px;
  min-height: 45px;
  padding: 0 43px 0 48px;
  border: none;
  outline: none;
  background: transparent;
  color: #f2f6f9;
  font-size: 14px;
  box-shadow: none;
}

.login-input-wrap .input:focus {
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

.login-input-wrap .input::placeholder {
  color: #a0b3c1;
  opacity: 1;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #a9c9dc;
  font-size: 22px;
  pointer-events: none;
}

.password-wrap {
  width: 100%;
}

.show-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: #b6d0df;
  cursor: pointer;
}

.show-password .material-symbols-outlined {
  font-size: 21px;
}

.show-password:hover {
  color: #fff;
}

.forgot-password {
  margin-top: -12px;
  margin-bottom: 8px;
  text-align: right;
  color: #c3d0d8;
  font-size: 13px;
}

.login-form .button-wide {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #91c8e4, #a8d8ef);
  color: #142b3b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(111, 184, 220, .18);
  transition: all .2s ease;
}

.login-form .button-wide:hover:not(:disabled) {
  background: linear-gradient(135deg, #a7d9f0, #bce7f7);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(111, 184, 220, .28);
}

.login-form .button-wide:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.login-content .notice {
  text-align: left;
}

.login-content .login-footer {
  display: none;
}

@media (max-width: 480px) {
  .login-page {
    padding: 22px 16px;
  }

  .login-shell {
    max-width: 390px;
    gap: 18px;
  }

  .login-logo img {
    max-width: 260px;
    max-height: 85px;
  }

  .login-content {
    padding: 28px 23px 30px;
  }
}

/* ===== WEST PhotoApp - Login Background ===== */

/* Background image - KEEP */
.login-page {
  background:
    linear-gradient(
      135deg,
      rgba(6, 18, 29, 0.55),
      rgba(11, 29, 44, 0.45)
    ),
    url('/assets/icons/bg.jpeg') center center / cover no-repeat,
    linear-gradient(135deg, #06121D, #0B1D2C);
}

/* Login card */
.login-content {
  background: rgba(6, 18, 29, 0.90);
  border: 1px solid rgba(91, 179, 206, 0.28);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.50),
    0 0 25px rgba(18, 126, 231, 0.10),
    0 0 35px rgba(20, 139, 128, 0.07);
}

/* Logo */
.login-brand img {
  filter: drop-shadow(0 0 10px rgba(91, 179, 206, 0.18));
}

/* Heading and description */
.login-content h1 {
  color: #EAF5FA;
}

.login-content > .muted {
  color: #8DA4B5;
}

/* Labels */
.login-form .field-label {
  color: #8CBCD0;
}

/* Input fields */
.login-form .input,
.login-form .select {
  background: rgba(6, 18, 29, 0.85);
  border: 1px solid rgba(91, 179, 206, 0.28);
  color: #EAF5FA;
}

.login-form .input::placeholder {
  color: #617D8E;
}

.login-form .input:focus,
.login-form .select:focus {
  border-color: #5BB3CE;
  box-shadow:
    0 0 0 3px rgba(91, 179, 206, 0.13),
    0 0 16px rgba(18, 126, 231, 0.12);
}

/* Show password */
.show-password {
  color: #8CBCD0;
}

.show-password:hover {
  color: #5BB3CE;
}

/* Login button */
.login-form .button-wide {
  background: linear-gradient(135deg, #8CBCD0 0%, #5BB3CE 100%);
  color: #06121D;
  border: 1px solid rgba(140, 188, 208, 0.35);
  box-shadow:
    0 4px 18px rgba(91, 179, 206, 0.20),
    0 0 18px rgba(18, 126, 231, 0.10);
}

.login-form .button-wide:hover:not(:disabled) {
  background: linear-gradient(135deg, #A4CFDE 0%, #8CBCD0 100%);
  box-shadow:
    0 6px 22px rgba(91, 179, 206, 0.30),
    0 0 22px rgba(20, 139, 128, 0.15);
}

/* Footer and links */
.login-content .login-footer {
  color: #718B9B;
}

.login-content .login-footer a {
  color: #8CBCD0;
}

.login-content .login-footer a:hover {
  color: #5BB3CE;
}

/* Notice */
.login-content .notice {
  border-color: rgba(91, 179, 206, 0.25);
}


/* =========================================
   WEST FIELDOPS - STORE VISITS WIZARD
   ========================================= */

.visit-page[hidden],
.visit-page [hidden] {
  display: none !important;
}

.visit-page {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
  padding-top: 42px;
  padding-bottom: 64px;
}

.visit-heading {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
  justify-content: center;
}

.visit-heading h1 {
  color: #EAF5FA;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.8px;
  margin-top: 9px;
}

.visit-heading p {
  color: #8DA4B5;
  margin-top: 9px;
}

.visit-heading .badge {
  margin-top: 14px;
}

.visit-wizard,
.recent-visits-section {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  background: rgba(6, 18, 29, 0.91);
  border: 1px solid rgba(91, 179, 206, 0.25);
  border-radius: 18px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(18, 126, 231, 0.07);
}

.visit-wizard {
  padding: clamp(20px, 4vw, 34px);
}

.wizard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(91, 179, 206, 0.17);
}

.wizard-header h2,
.recent-visits-section h2 {
  color: #EAF5FA;
  font-size: 21px;
  margin: 5px 0;
}

.wizard-header p {
  margin: 0;
}

.wizard-progress {
  padding: 26px 0 32px;
}

.wizard-progress-track {
  height: 4px;
  background: rgba(140, 188, 208, 0.15);
  border-radius: 20px;
  overflow: hidden;
}

.wizard-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #148B80, #5BB3CE, #127EE7);
  transition: width 220ms ease;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #718B9B;
  text-align: center;
  transition: color 180ms ease;
}

.wizard-step-indicator span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(140, 188, 208, 0.24);
  background: rgba(11, 29, 44, 0.85);
  font-size: 11px;
  font-weight: 700;
}

.wizard-step-indicator small {
  font-size: 11px;
}

.wizard-step-indicator.active {
  color: #EAF5FA;
}

.wizard-step-indicator.active span,
.wizard-step-indicator.completed span {
  color: #06121D;
  background: #5BB3CE;
  border-color: #5BB3CE;
  box-shadow: 0 0 15px rgba(91, 179, 206, 0.18);
}

.wizard-panel {
  min-height: 290px;
  padding: 8px 0 24px;
}

.wizard-panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.wizard-number {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 179, 206, 0.35);
  border-radius: 12px;
  color: #8CBCD0;
  background: rgba(20, 139, 128, 0.09);
  font-weight: 700;
}

.wizard-panel-heading h3 {
  color: #EAF5FA;
  font-size: 19px;
  margin: 0 0 4px;
}

.wizard-panel-heading p {
  color: #8DA4B5;
  font-size: 13px;
  margin: 0;
}

.wizard-panel-heading .photo-count {
  margin-left: auto;
  white-space: nowrap;
}

.wizard-store-search {
  max-width: 100%;
}

.wizard-store-search label {
  display: block;
  color: #8CBCD0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}

.wizard-store-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  color: #EAF5FA;
  background: rgba(11, 29, 44, 0.9);
  border: 1px solid rgba(91, 179, 206, 0.3);
  border-radius: 10px;
  outline: none;
}

.wizard-store-search input::placeholder {
  color: #718B9B;
}

.wizard-store-search input:focus {
  border-color: #5BB3CE;
  box-shadow: 0 0 0 3px rgba(91, 179, 206, 0.11);
}

.wizard-store-search [role="listbox"] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.wizard-store-search [role="listbox"] button {
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  color: #EAF5FA;
  background: rgba(11, 29, 44, 0.75);
  border: 1px solid rgba(91, 179, 206, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

.wizard-store-search [role="listbox"] button:hover {
  background: rgba(20, 48, 65, 0.95);
  border-color: rgba(91, 179, 206, 0.55);
}

.wizard-store-search [role="listbox"] button span + span {
  color: #8DA4B5;
  margin-top: 4px;
}

.wizard-store-search [role="listbox"] p {
  color: #8DA4B5;
  padding: 8px 2px;
}

.wizard-store-meta {
  display: block;
  margin-top: 22px;
  padding: 18px;
  color: #EAF5FA;
  background: rgba(20, 139, 128, 0.08);
  border: 1px solid rgba(20, 139, 128, 0.35);
  border-radius: 12px;
}

.store-meta-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8CBCD0;
  margin-bottom: 17px;
}

.store-meta-title .material-symbols-outlined {
  color: #5BB3CE;
}

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

.store-meta-grid > div {
  min-width: 0;
}

.store-meta-grid .field-label {
  display: block;
  margin-bottom: 5px;
  color: #8DA4B5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-meta-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #EAF5FA;
  font-size: 14px;
}

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

.wizard-uploader .upload-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: #EAF5FA;
  background: rgba(11, 29, 44, 0.75);
  border: 1px dashed rgba(91, 179, 206, 0.42);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.wizard-uploader .upload-tile:hover {
  background: rgba(20, 48, 65, 0.85);
  border-color: #5BB3CE;
  transform: translateY(-2px);
}

.wizard-uploader .upload-tile > .material-symbols-outlined {
  color: #5BB3CE;
  font-size: 30px;
}

.wizard-uploader .upload-tile strong {
  font-size: 14px;
}

.wizard-uploader .upload-tile small {
  color: #8DA4B5;
  font-size: 12px;
}

.wizard-uploader input[type="file"] {
  display: none;
}

.wizard-photo-info {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  color: #8DA4B5;
  font-size: 12px;
  line-height: 1.6;
}

.wizard-photo-info .material-symbols-outlined {
  flex: 0 0 auto;
  color: #5BB3CE;
  font-size: 18px;
}

.wizard-panel .photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 20px;
}

.wizard-panel .photo-grid > div {
  max-width: 115px;
  color: #8DA4B5;
}

.wizard-panel .photo-grid img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid rgba(91, 179, 206, 0.25);
  border-radius: 9px;
}

.wizard-comments {
  width: 100%;
}

.wizard-comments .field-label {
  display: block;
  color: #8CBCD0;
  margin-bottom: 9px;
}

.wizard-comments .textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px;
  color: #EAF5FA;
  background: rgba(11, 29, 44, 0.9);
  border: 1px solid rgba(91, 179, 206, 0.28);
  border-radius: 10px;
  resize: vertical;
}

.wizard-comments .textarea::placeholder {
  color: #718B9B;
}

.wizard-comments .textarea:focus {
  outline: none;
  border-color: #5BB3CE;
  box-shadow: 0 0 0 3px rgba(91, 179, 206, 0.1);
}

.wizard-comments .field-help {
  color: #8DA4B5;
  margin-top: 8px;
  font-size: 12px;
}

.review-card {
  padding: 20px;
  background: rgba(11, 29, 44, 0.7);
  border: 1px solid rgba(91, 179, 206, 0.2);
  border-radius: 13px;
}

.review-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8CBCD0;
  margin-bottom: 12px;
}

.review-section-heading .material-symbols-outlined {
  color: #5BB3CE;
}

.review-content {
  color: #EAF5FA;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.review-content p {
  margin: 4px 0;
  color: #8DA4B5;
}

.review-content ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #8DA4B5;
}

.review-divider {
  height: 1px;
  margin: 17px 0;
  background: rgba(91, 179, 206, 0.16);
}

.wizard-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 17px;
  padding: 13px 15px;
  color: #8DA4B5;
  background: rgba(20, 139, 128, 0.08);
  border: 1px solid rgba(20, 139, 128, 0.25);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
}

.wizard-confirmation .material-symbols-outlined {
  flex: 0 0 auto;
  color: #5BB3CE;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(91, 179, 206, 0.17);
}

.wizard-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.wizard-actions .button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  cursor: pointer;
}

.wizard-actions .button-primary {
  color: #06121D;
  background: linear-gradient(135deg, #8CBCD0, #5BB3CE);
  border: 1px solid rgba(140, 188, 208, 0.4);
  box-shadow: 0 4px 16px rgba(91, 179, 206, 0.13);
}

.wizard-actions .button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #A4CFDE, #8CBCD0);
}

.wizard-actions .button-quiet {
  color: #8CBCD0;
  background: rgba(11, 29, 44, 0.65);
  border: 1px solid rgba(91, 179, 206, 0.24);
}

.wizard-actions .button-quiet:hover:not(:disabled) {
  color: #EAF5FA;
  border-color: #5BB3CE;
  background: rgba(20, 48, 65, 0.8);
}

.wizard-actions .button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.recent-visits-section {
  margin-top: 25px;
  padding: 25px;
}

.recent-visits-section .card-header {
  align-items: center;
}

.recent-visits-description {
  margin: 8px 0 17px;
}

.recent-visits-section .visits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-visits-section .visit-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  color: #EAF5FA;
  background: rgba(11, 29, 44, 0.7);
  border: 1px solid rgba(91, 179, 206, 0.17);
  border-radius: 10px;
}

.visit-mini-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.visit-mini-info strong {
  color: #EAF5FA;
  overflow-wrap: anywhere;
}

.visit-mini-info small {
  color: #8DA4B5;
}

.recent-visits-section .empty-state {
  padding: 24px;
  color: #8DA4B5;
  text-align: center;
  background: rgba(11, 29, 44, 0.55);
  border: 1px dashed rgba(91, 179, 206, 0.2);
  border-radius: 10px;
}

@media (max-width: 600px) {
  .visit-page {
    width: min(100% - 22px, 900px);
    padding-top: 25px;
  }

  .visit-heading {
    margin-bottom: 20px;
  }

  .wizard-header {
    flex-direction: column;
  }

  .wizard-header > .badge {
    align-self: flex-start;
  }

  .wizard-steps {
    gap: 3px;
  }

  .wizard-step-indicator small {
    font-size: 10px;
  }

  .wizard-panel-heading {
    align-items: flex-start;
  }

  .wizard-panel-heading h3 {
    font-size: 17px;
  }

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

  .wizard-uploader .upload-tile {
    min-height: 125px;
  }

  .store-meta-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .wizard-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-navigation {
    width: 100%;
  }

  .wizard-navigation .button {
    flex: 1;
  }

  .wizard-actions > .button {
    width: 100%;
  }

  .recent-visits-section {
    padding: 18px;
  }

  .recent-visits-section .visit-mini {
    align-items: flex-start;
    flex-direction: column;
  }
}

.report-page {
  padding-bottom: 48px;
}

.report-stats {
  margin-bottom: 22px;
}

.report-stats .stat {
  min-height: 132px;
  position: relative;
  overflow: hidden;
}

.report-stats .stat > .material-symbols-outlined {
  color: #72bfd5;
  font-size: 25px;
  margin-bottom: 12px;
}

.report-stats .stat-number {
  color: #EAF5FA;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.report-filters {
  margin-bottom: 20px;
}

.report-filters .card-header {
  margin-bottom: 18px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.7fr) repeat(4, minmax(125px, 1fr));
  align-items: end;
  gap: 14px;
}

.report-filter-grid .field {
  min-width: 0;
  margin: 0;
}

.report-results {
  overflow: hidden;
}

.report-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(91, 179, 206, 0.17);
}

.report-results-header h2 {
  margin: 0 0 5px;
}

.report-actions,
.report-view-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.report-view-switch {
  padding: 4px;
  border: 1px solid rgba(91, 179, 206, 0.2);
  border-radius: 10px;
  background: rgba(3, 15, 25, 0.45);
}

.report-view-switch .button {
  gap: 6px;
}

.report-view-switch .material-symbols-outlined,
.report-actions > .button .material-symbols-outlined {
  font-size: 18px;
}

.visit-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  padding: 20px;
}

.visit-gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(91, 179, 206, 0.2);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(16, 43, 61, 0.88), rgba(7, 24, 38, 0.96));
  transition: border-color 160ms ease, transform 160ms ease;
}

.visit-gallery-card:hover {
  border-color: rgba(91, 179, 206, 0.48);
  transform: translateY(-2px);
}

.visit-gallery-content {
  padding: 17px;
}

.visit-gallery-top,
.visit-gallery-details,
.visit-gallery-photo-heading,
.visit-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.visit-gallery-date {
  color: #9EB5C4;
  font-size: 12px;
  font-weight: 600;
}

.visit-status {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.visit-status.is-completed {
  color: #A6E3D2;
  background: rgba(20, 139, 128, 0.16);
  border: 1px solid rgba(73, 190, 164, 0.25);
}

.visit-status.is-active {
  color: #E7C98A;
  background: rgba(183, 132, 42, 0.13);
  border: 1px solid rgba(183, 132, 42, 0.25);
}

.visit-gallery-title {
  margin: 14px 0 3px;
  color: #EAF5FA;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.visit-gallery-code {
  margin: 0;
  color: #80BBD0;
  font-size: 12px;
}

.visit-gallery-details {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 13px;
  color: #A9BDCA;
  font-size: 12px;
}

.visit-gallery-comments {
  min-height: 42px;
  margin: 14px 0;
  color: #C4D3DC;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.visit-gallery-photo-heading {
  margin-bottom: 9px;
  color: #DCEAF1;
  font-size: 12px;
  font-weight: 600;
}

.visit-gallery-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-height: 66px;
}

.gallery-photo-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(91, 179, 206, 0.23);
  border-radius: 8px;
  background: rgba(3, 15, 25, 0.7);
  cursor: zoom-in;
}

.gallery-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-photo-button:hover .gallery-photo-image {
  transform: scale(1.06);
}

.gallery-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 5px;
  color: #8DA4B5;
  font-size: 10px;
  text-align: center;
}

.gallery-more-photos,
.gallery-no-photos {
  display: grid;
  place-items: center;
  min-height: 66px;
  border: 1px dashed rgba(91, 179, 206, 0.25);
  border-radius: 8px;
  color: #A8C4D2;
  background: rgba(3, 15, 25, 0.35);
  font-size: 13px;
}

.gallery-no-photos {
  grid-column: 1 / -1;
  font-size: 12px;
}

.visit-gallery-footer {
  justify-content: flex-end;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(91, 179, 206, 0.13);
}

.gallery-loading,
.gallery-empty {
  grid-column: 1 / -1;
  padding: 42px 20px;
  color: #9EB5C4;
  text-align: center;
}

.report-pagination {
  padding: 15px 20px;
  border-top: 1px solid rgba(91, 179, 206, 0.15);
}

.photo-dialog {
  width: min(92vw, 1100px);
  max-width: 1100px;
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(91, 179, 206, 0.35);
  border-radius: 13px;
  background: #071725;
  color: #EAF5FA;
}

.photo-dialog::backdrop {
  background: rgba(0, 7, 13, 0.88);
  backdrop-filter: blur(5px);
}

.photo-dialog-inner {
  position: relative;
  padding: 12px;
}

.photo-dialog-inner img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  object-fit: contain;
  border-radius: 7px;
}

.photo-dialog-inner p {
  margin: 10px 38px 2px 2px;
  color: #AFC4D0;
  font-size: 13px;
}

.photo-dialog-close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: white;
  background: rgba(3, 15, 25, 0.85);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.table-view[hidden],
#gallery-view[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .visit-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .report-results-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px;
  }

  .report-actions {
    width: 100%;
  }

  .visit-gallery {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-grid .field:first-child {
    grid-column: 1 / -1;
  }

  .report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .report-filter-grid {
    grid-template-columns: 1fr;
  }

  .report-filter-grid .field:first-child {
    grid-column: auto;
  }

  .report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-view-switch {
    width: fit-content;
  }
}

.report-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
  width: 100%;
}

.report-stats > * {
  min-width: 0;
  width: 100%;
}

/* Filters in horizontal layout */
.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

/* Responsive */
@media (max-width: 900px) {
  .report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .report-stats,
  .report-filter-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== ADMIN PAGE - MATCH VISIT PAGE DESIGN ===== */

#admin-page[hidden],
#admin-page [hidden] {
  display: none !important;
}

#admin-page {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
  padding-top: 42px;
  padding-bottom: 64px;
}

#admin-page > .page-heading {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#admin-page > .page-heading h1 {
  color: #EAF5FA;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.8px;
}

#admin-page > .page-heading p {
  color: #8DA4B5;
}

#admin-page > .tabs {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  background: rgba(6, 18, 29, 0.8);
  border: 1px solid rgba(91, 179, 206, 0.2);
  border-radius: 13px;
}

#admin-page > .tabs button {
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #8DA4B5;
  font-weight: 600;
  transition: 180ms ease;
}

#admin-page > .tabs button:hover {
  color: #EAF5FA;
  background: rgba(91, 179, 206, 0.07);
}

#admin-page > .tabs button.active,
#admin-page > .tabs button[aria-selected="true"] {
  color: #EAF5FA;
  background: rgba(20, 139, 128, 0.15);
  border-color: rgba(91, 179, 206, 0.3);
  box-shadow: 0 0 15px rgba(18, 126, 231, 0.07);
}

#admin-page > section.card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 20px;
  padding: clamp(20px, 4vw, 32px);
  background: rgba(6, 18, 29, 0.91);
  border: 1px solid rgba(91, 179, 206, 0.25);
  border-radius: 18px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(18, 126, 231, 0.07);
}

#admin-page .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(91, 179, 206, 0.17);
}

#admin-page .card-header h2,
#admin-page .card-header h3 {
  color: #EAF5FA;
  font-size: 21px;
  margin: 4px 0;
}

#admin-page .admin-form {
  padding: 0;
  margin-bottom: 24px;
}

#admin-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#admin-page .field {
  min-width: 0;
}

#admin-page .field label {
  display: block;
  margin-bottom: 7px;
  color: #B9CED9;
  font-size: 13px;
  font-weight: 600;
}

#admin-page input,
#admin-page select,
#admin-page textarea {
  width: 100%;
  min-width: 0;
  color: #EAF5FA;
  background: rgba(11, 29, 44, 0.88);
  border: 1px solid rgba(91, 179, 206, 0.25);
  border-radius: 9px;
}

#admin-page input:focus,
#admin-page select:focus,
#admin-page textarea:focus {
  outline: none;
  border-color: #5BB3CE;
  box-shadow: 0 0 0 3px rgba(91, 179, 206, 0.1);
}

#admin-page .row-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#admin-page .table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(91, 179, 206, 0.17);
  border-radius: 11px;
  background: rgba(11, 29, 44, 0.38);
}

#admin-page .data-table {
  width: 100%;
  border-collapse: collapse;
}

#admin-page .data-table th {
  color: #8CBCD0;
  background: rgba(91, 179, 206, 0.07);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

#admin-page .data-table th,
#admin-page .data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(91, 179, 206, 0.12);
}

#admin-page .data-table td {
  color: #D5E5ED;
  font-size: 13px;
}

#admin-page .data-table tbody tr:last-child td {
  border-bottom: 0;
}

#admin-page .data-table tbody tr:hover {
  background: rgba(91, 179, 206, 0.04);
}

#admin-page > .notice {
  width: 100%;
  max-width: 760px;
  margin: 20px auto 0;
}

@media (max-width: 600px) {
  #admin-page {
    width: min(100% - 22px, 900px);
    padding-top: 25px;
  }

  #admin-page > .page-heading {
    margin-bottom: 20px;
  }

  #admin-page > .tabs {
    gap: 4px;
    padding: 4px;
  }

  #admin-page > .tabs button {
    padding: 8px 5px;
    font-size: 12px;
  }

  #admin-page > section.card {
    padding: 20px 16px;
  }

  #admin-page .form-grid {
    grid-template-columns: 1fr;
  }

  #admin-page .card-header {
    flex-direction: column;
  }
}