@import url("../classic/style.css");

:root {
  --bg: linear-gradient(135deg, #f0f6ff 0%, #d6e6ff 100%);
  --card: rgba(255, 255, 255, 0.9);
  --primary: #0057d9;
  --accent: #ffc72c;
  --text: #0f172a;
  --muted: #5f6c85;
  --success: #1f9d63;
  --danger: #d62839;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

body {
  background: #e6f0ff;
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: -1;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1000;
}

.logo-inline img {
  height: 48px;
  width: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.dashboard {
  background:
    linear-gradient(120deg, rgba(0, 87, 217, 0.08), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 199, 44, 0.15), transparent 45%);
}

.card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #0057d9, #0a89ff);
  border: none;
  color: #fff;
}

.btn {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.btn-soft {
  background: rgba(0, 87, 217, 0.08);
  border: 1px solid rgba(0, 87, 217, 0.15);
  color: var(--primary);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text);
  min-height: 52px;
  border-radius: 16px;
  padding: 0 1rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 217, 0.15);
}

input[type=date]::-webkit-calendar-picker-indicator,
input[type=search]::-webkit-search-decoration {
  height: 100%;
}

.tpu-force-uppercase {
  text-transform: uppercase;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.logo-large {
  background: #fff;
}

.wave-bg {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: -2;
}

.wave-dashboard {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.wave-dashboard.wave-dashboard--form {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.wave-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.4rem 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 87, 217, 0.12);
}

.wave-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-pill {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 199, 44, 0.2);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.2);
}

.logo-circle img {
  width: 60px;
}
.topbar-links .user-menu .user-menu-dropdown {
  z-index: 999;
}
.topbar-links .user-menu .user-menu-dropdown {
  z-index: 999;
}

.wave-user {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.panel {
  border-radius: 24px;
}

.wave-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wave-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(2, 28, 173, 0.1);
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.panel p {
  margin: 0;
}

.panel-stats--arena {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.08);
}

.panel-stats p {
  color: var(--muted);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head--arena {
  align-items: flex-start;
}

.panel-wide {
  grid-column: 1 / -1;
}

.arena-tag-lite {
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(8, 18, 41, 0.08);
  color: #163463;
  border: 1px solid rgba(8, 18, 41, 0.2);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.arena-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.stat-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  min-height: 140px;
  font: inherit;
  color: inherit;
}

.stat-card:focus-visible,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 87, 217, 0.18);
  outline: none;
}

.stat-card:focus {
  outline: none;
}

.arena-stat-card {
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(8, 18, 41, 0.95), rgba(16, 38, 85, 0.92));
  color: #f8fafc;
  border: none;
  box-shadow: 0 25px 45px rgba(9, 12, 31, 0.25);
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.arena-stat-card small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: rgba(173, 199, 255, 0.9);
}

.arena-stat-card__value {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.arena-stat-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
}

.arena-stat-card:focus-visible,
.arena-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 35px 55px rgba(9, 12, 31, 0.35);
}

.arena-stat-card--docs {
  background: linear-gradient(135deg, rgba(8, 18, 41, 0.95), rgba(16, 38, 85, 0.92));
  color: #f8fafc;
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
}

.stat-card small,
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: none;
}

.stat-card small {
  display: block;
  margin-top: auto;
}

.stat-grid--docs .stat-card strong {
  color: #b45309;
}

.panel-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-soft {
  background: rgba(0, 87, 217, 0.08);
  border: 1px solid rgba(0, 87, 217, 0.15);
  color: var(--primary);
}

.btn-soft:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge.orange {
  background: rgba(255, 199, 44, 0.25);
  color: #c27800;
}

.badge.blue {
  background: rgba(0, 87, 217, 0.18);
  color: #003f9e;
}

.badge.gray {
  background: rgba(15, 23, 42, 0.1);
  color: var(--muted);
}

.wave-table thead tr {
  border-bottom: 1px solid rgba(2, 28, 173, 0.15);
}

.wave-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  color: var(--muted);
}

.wave-table--full td {
  padding: 0.9rem 0;
}

.messages-block {
  grid-column: 1 / -1;
}

.messages-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.wave-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.wave-modal.is-visible {
  display: flex;
}

.modal-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  width: 100%;
  max-width: 960px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  position: relative;
}

.modal-card h4 {
  margin: 0 0 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(15, 23, 42, 0.15);
}

body.modal-open {
  overflow: hidden;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.empty-state {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
}

.component-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 12px 35px rgba(0, 87, 217, 0.08);
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  max-width: 260px;
}
.component-card--link {
  text-decoration: none;
  color: inherit;
}
.component-card--link:hover {
  box-shadow: 0 18px 45px rgba(0, 87, 217, 0.15);
  transform: translateY(-2px);
}

.component-card__header {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.component-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.2;
}

.component-card__code {
  color: var(--muted);
  font-size: 0.9rem;
}

.component-card__code--socio {
  color: #0b8b5e;
  font-weight: 600;
}

.component-card__code--nonsocio {
  color: #b91c1c;
  font-weight: 600;
}

.component-card__name,
.component-card__surname {
  display: block;
  line-height: 1.2;
}
.component-card__name {
  font-size: 1rem;
  font-weight: 700;
}
.component-card__surname {
  font-size: 0.95rem;
  color: var(--muted);
}
.component-card__socio-label {
  font-size: 0.85rem;
  text-transform: none;
}
.component-card__nonsocio-note {
  display: block;
  font-size: 0.75rem;
  text-transform: none;
  margin-top: 0.15rem;
  color: #b91c1c;
}
.component-card__code--pending {
  color: #8d8d93;
  font-weight: 600;
}

.component-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 87, 217, 0.15), rgba(10, 137, 255, 0.25));
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-size: cover;
  background-position: center;
}
.component-avatar--filled {
  background-color: transparent;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
}

.component-card__meta,
.component-card__status {
  font-size: 0.85rem;
  color: var(--muted);
}

.component-card__status--pending {
  color: #b91c1c;
  font-weight: 600;
  margin-top: 0.5rem;
}

.components-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.component-card {
  flex: 0 0 260px;
}

.component-panel {
  grid-column: 1 / -1;
}

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

.component-panel__head img,
.component-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}

.wave-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.wave-auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 30px 70px rgba(0, 87, 217, 0.2);
}
.photo-upload-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.photo-upload-status {
  font-size: 0.85rem;
  color: var(--muted);
}
.photo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.photo-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.75rem;
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.photo-card img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}
.photo-card--new {
  border-color: #0b8b5e;
}

.wave-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.messages-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.messages-block {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .wave-dashboard {
    grid-template-columns: 1fr;
  }

  .wave-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wave-user {
    width: 100%;
    align-items: flex-start;
  }

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

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

  .wave-auth-card {
    padding: 2rem 1.5rem;
  }

  .components-cards {
    flex-direction: column;
    overflow: visible;
  }

  .wave-modal {
    padding: 1rem;
  }
}

.tpu-page-footer {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tpu-page-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tpu-page-footer__links a {
  color: var(--primary);
  text-decoration: none;
}

.tpu-page-footer__links a:hover {
  text-decoration: underline;
}

.tpu-page-footer__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.tpu-page-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 150px;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
  color: var(--text);
  padding: 0 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
  appearance: none;
}

.tpu-page-footer__button:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.tpu-page-footer__button:focus-visible {
  outline: 2px solid rgba(0, 87, 217, 0.35);
  outline-offset: 2px;
}

.tpu-page-footer__note {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .tpu-page-footer {
    flex-direction: column;
    text-align: center;
  }

  .tpu-page-footer__links,
  .tpu-page-footer__actions {
    justify-content: center;
  }
}
