/*
Theme Name: Medical Vault Theme
Author: Project Team
Version: 4.0.0
Description: WordPress theme converted from main.html with modular DB backend.
Text Domain: medical-vault-theme
*/

@font-face {
  font-family: Vazirmatn;
  src: url(https://rozup.ir/view/4206646/Vazirmatn-Regular.ttf);
}

:root {
  --bg-0: #08141f;
  --bg-1: #0f202d;
  --bg-2: #132a3b;
  --panel: rgba(10, 24, 37, 0.82);
  --panel-2: rgba(17, 35, 52, 0.9);
  --line: rgba(154, 194, 216, 0.22);
  --line-2: rgba(154, 194, 216, 0.36);
  --text: #eef6fc;
  --muted: #aac0cf;
  --accent: #f2a155;
  --accent-2: #4dc7d4;
  --ok: #6dd4ae;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(1200px 500px at -5% -10%, rgba(77, 199, 212, 0.24), transparent 50%),
    radial-gradient(900px 500px at 105% 0%, rgba(242, 161, 85, 0.24), transparent 48%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

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

.landing-wrap {
  width: min(1240px, 96vw);
  margin: 24px auto 32px;
  display: grid;
  gap: 14px;
}

.lp-hero,
.lp-sections,
.learn-center,
.frontend-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(6px);
}

.lp-hero {
  padding: 20px;
}

.lp-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.term-pill,
.admin-btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 12px;
}

.term-pill {
  color: var(--accent);
  background: rgba(242, 161, 85, 0.12);
}

.admin-btn {
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-btn:hover {
  border-color: var(--line-2);
}

.hero-kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.lp-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.16;
}

.lp-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.cta-primary {
  color: #06111a;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--accent), #ffc387);
}

.cta-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-1px);
}

.lp-sections {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.lp-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.lp-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.learn-center {
  background: var(--panel-2);
}

.learn-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(77, 199, 212, 0.45);
  color: #5fd9e7;
  background: rgba(77, 199, 212, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-block strong {
  display: block;
  font-size: 15px;
}

.brand-block small {
  color: var(--muted);
  font-size: 12px;
}

.vault-toolbar {
  width: min(1220px, 95vw);
  margin: 14px auto 0;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.vault-search {
  position: relative;
  display: block;
}

.vault-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 18, 28, 0.78);
  color: var(--text);
  padding: 12px 46px 12px 16px;
  font-size: 15px;
}

.vault-search input::placeholder {
  color: #9db4c4;
}

.vault-search input:focus {
  outline: none;
  border-color: var(--line-2);
  box-shadow: 0 0 0 3px rgba(77, 199, 212, 0.22);
}

.vault-search .icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.75;
}

.vault-counter {
  border: 1px solid rgba(109, 212, 174, 0.38);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: #9de2c3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(109, 212, 174, 0.1);
}

.vault-tabs {
  width: min(1220px, 95vw);
  margin: 14px auto 0;
  padding: 0 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn .tab-ic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
}

.tab-btn:hover {
  border-color: var(--line-2);
}

.tab-btn[aria-selected="true"] {
  border-color: rgba(242, 161, 85, 0.6);
  background: rgba(242, 161, 85, 0.15);
}

.vault-main {
  width: min(1220px, 95vw);
  margin: 12px auto 0;
  padding: 0 10px 18px;
}

.vault-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 21, 33, 0.85);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}

.panel-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
}

.panel-title .sec-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}

.divider {
  height: 1px;
  margin: 0 12px 8px;
  background: var(--line);
}

.session-card {
  border-top: 1px solid rgba(154, 194, 216, 0.16);
}

.session-summary {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

.sum-title {
  font-size: 16px;
  font-weight: 700;
}

.sum-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.chev {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.session-card.is-open .chev {
  transform: rotate(180deg);
}

.details-body {
  visibility: hidden;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.actions {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.dl {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  color: var(--text);
  text-decoration: none;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
}

.dl .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: #8ee7f1;
  background: rgba(77, 199, 212, 0.13);
  display: grid;
  place-items: center;
}

.dl .ic svg {
  width: 20px;
  height: 20px;
}

.dl .lbl {
  min-width: 0;
}

.dl .t {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.dl .s {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl[aria-disabled="true"] {
  opacity: 0.5;
}

.vault-footer-note {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.frontend-panel {
  padding: 14px;
}

.frontend-panel-head h2 {
  margin: 0;
}

.frontend-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.frontend-panel-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.frontend-panel-form label {
  display: grid;
  gap: 6px;
}

.frontend-panel-form label > span {
  font-size: 13px;
  color: var(--muted);
}

.frontend-panel-form input[type="text"],
.frontend-panel-form input[type="url"],
.frontend-panel-form input[type="number"],
.frontend-panel-form input[type="search"],
.frontend-panel-form select,
.frontend-panel-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 18, 28, 0.74);
  color: var(--text);
  padding: 10px 12px;
}

.frontend-panel-form select option {
  color: var(--text);
  background: #112536;
}

.frontend-panel-form input:focus,
.frontend-panel-form select:focus {
  outline: none;
  border-color: var(--line-2);
  box-shadow: 0 0 0 3px rgba(77, 199, 212, 0.2);
}

.mv-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.mv-inline-check input {
  width: 16px;
  height: 16px;
}

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

.mv-front-file {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.mv-front-file h4 {
  margin: 0;
  text-transform: capitalize;
}

.mv-front-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mv-front-file-actions {
  display: inline-flex;
  gap: 8px;
}

.mv-file-kind {
  min-width: 130px;
}

.mv-upload-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 18, 28, 0.74);
  overflow: hidden;
}

.mv-upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4dc7d4, #f2a155);
  transition: width 0.2s ease;
}

.mv-upload-progress.is-uploading .mv-upload-progress-bar {
  background: linear-gradient(90deg, #4dc7d4, #f2a155);
}

.mv-upload-progress.is-done .mv-upload-progress-bar {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.mv-upload-progress.is-error .mv-upload-progress-bar {
  background: linear-gradient(90deg, #ef4444, #fca5a5);
}

.mv-upload-progress span {
  position: absolute;
  right: 10px;
  top: -22px;
  font-size: 12px;
  color: var(--muted);
}

.mv-upload-progress.is-done span {
  color: #22c55e;
}

.mv-upload-progress.is-error span {
  color: #ef4444;
}

.mv-front-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.frontend-panel-list {
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(7, 18, 28, 0.62);
}

.frontend-panel-list h3 {
  margin: 0;
}

.frontend-panel-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.frontend-panel-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

#mv-front-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.mv-front-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.mv-front-item strong {
  display: block;
}

.mv-front-item p {
  margin: 4px 0 0;
}

.mv-front-item-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 960px) {
  .lp-sections {
    grid-template-columns: 1fr;
  }

  .mv-front-files {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .landing-wrap {
    width: 95vw;
    margin-top: 14px;
  }

  .lp-topline {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .vault-counter {
    width: fit-content;
  }

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

  .mv-front-item {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
