/* Lexynex Legal v0.7a themes */

.theme-calm_light{
  --bg:#eef3f9;
  --sidebar:#0b1324;
  --sidebar2:#111b31;
  --card:#ffffff;
  --line:#d8e1ee;
  --text:#1f2937;
  --muted:#667085;
  --primary:#0f62fe;
  --primary-dark:#0a4fcc;
  --primary-soft:rgba(15,98,254,.13);
}

.theme-calm_dark{
  --bg:#111827;
  --sidebar:#070b14;
  --sidebar2:#101827;
  --card:#1f2937;
  --line:#344155;
  --text:#f8fafc;
  --muted:#cbd5e1;
  --primary:#3b82f6;
  --primary-dark:#2563eb;
  --primary-soft:rgba(59,130,246,.22);
}

.theme-vf_dark{
  --bg:#07111f;
  --sidebar:#020817;
  --sidebar2:#061a2e;
  --card:#0e2238;
  --line:#14507d;
  --text:#f8fafc;
  --muted:#bed4e8;
  --primary:#22d3ee;
  --primary-dark:#06b6d4;
  --primary-soft:rgba(34,211,238,.18);
}

.theme-classic{
  --bg:#f4f4f5;
  --sidebar:#2f3744;
  --sidebar2:#2f3744;
  --card:#ffffff;
  --line:#c7c7c7;
  --text:#111827;
  --muted:#52525b;
  --primary:#334155;
  --primary-dark:#1f2937;
  --primary-soft:rgba(51,65,85,.12);
}

/* New: Hernádi law-office light theme */
.theme-hernadi_light{
  --bg:#f6f0ed;
  --sidebar:#4b0b0b;
  --sidebar2:#730d0d;
  --card:#fffaf7;
  --line:#ead8d3;
  --text:#201818;
  --muted:#765d58;
  --primary:#8f0505;
  --primary-dark:#650000;
  --primary-soft:rgba(143,5,5,.12);
}

/* New: Lexynex premium dark/gold theme */
.theme-lexynex_dark_gold{
  --bg:#050b14;
  --sidebar:#040912;
  --sidebar2:#081827;
  --card:#081927;
  --line:rgba(255,185,23,.22);
  --text:#f8fafc;
  --muted:#aab6c5;
  --primary:#ffb917;
  --primary-dark:#d99a00;
  --primary-soft:rgba(255,185,23,.16);
  --shadow:0 22px 60px rgba(0,0,0,.42);
}

.theme-calm_dark body,
body.theme-calm_dark,
.theme-vf_dark body,
body.theme-vf_dark{
  background:var(--bg);
  color:var(--text);
}

.theme-calm_dark .card,
.theme-vf_dark .card{
  background:var(--card);
  color:var(--text);
}

.theme-calm_dark .card p,
.theme-vf_dark .card p,
.theme-calm_dark .muted-text,
.theme-vf_dark .muted-text{
  color:var(--muted);
}

.theme-calm_dark input,
.theme-calm_dark select,
.theme-calm_dark textarea,
.theme-vf_dark input,
.theme-vf_dark select,
.theme-vf_dark textarea{
  background:#111827;
  color:var(--text);
  border-color:var(--line);
}

.theme-vf_dark .btn-primary{
  color:#04111f;
}

.theme-classic .card,
.theme-classic .sidebar,
.theme-classic .nav a,
.theme-classic input,
.theme-classic select,
.theme-classic textarea,
.theme-classic .btn{
  border-radius:4px;
}

.theme-classic .card{
  box-shadow:none;
}

.theme-hernadi_light body,
body.theme-hernadi_light{
  background:linear-gradient(180deg,#faf4f1 0%, #f3e9e5 100%);
  color:var(--text);
}

.theme-hernadi_light .sidebar{
  background:linear-gradient(180deg,#4b0b0b 0%,#760d0d 100%);
}

.theme-hernadi_light .brand-subtitle{
  color:#f5d7d1;
}

.theme-hernadi_light .nav a{
  background:rgba(255,255,255,.055);
  border-color:rgba(255,255,255,.10);
  color:#fff3ef;
}

.theme-hernadi_light .nav a:hover,
.theme-hernadi_light .nav a.active{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.28);
  color:#fff;
}

.theme-hernadi_light .card,
.theme-hernadi_light .mini-card,
.theme-hernadi_light .theme-choice,
.theme-hernadi_light .language-choice{
  background:#fffaf7;
  border-color:#ead8d3;
}

.theme-hernadi_light .topbar h1{
  color:#2c1717;
}

.theme-hernadi_light .btn-primary{
  background:#8f0505;
  color:#fff;
}

.theme-hernadi_light .btn-primary:hover{
  background:#650000;
}

.theme-hernadi_light .btn-secondary,
.theme-hernadi_light .btn-small{
  background:#fffaf7;
  border-color:#dfc4bd;
  color:#4b0b0b;
}

.theme-hernadi_light input,
.theme-hernadi_light select,
.theme-hernadi_light textarea{
  background:#fffdfb;
  border-color:#dfc4bd;
  color:#201818;
}

.theme-hernadi_light .badge{
  background:#f7e8e4;
  color:#8f0505;
}

.theme-hernadi_light .table-sub,
.theme-hernadi_light .muted-text,
.theme-hernadi_light .mini-card span{
  color:#765d58;
}


.theme-lexynex_dark_gold body,
body.theme-lexynex_dark_gold{
  background:
    radial-gradient(circle at 18% 0%, rgba(255,185,23,.11) 0%, rgba(255,185,23,0) 28%),
    linear-gradient(180deg,#040812 0%, #071424 54%, #04070d 100%);
  color:var(--text);
}

.theme-lexynex_dark_gold .app-shell{
  background:transparent;
}

.theme-lexynex_dark_gold .sidebar{
  background:
    radial-gradient(circle at top left, rgba(255,185,23,.13), transparent 34%),
    linear-gradient(180deg,#050b14 0%, #071a2d 100%);
  border-right:1px solid rgba(255,185,23,.16);
  box-shadow:16px 0 44px rgba(0,0,0,.26);
}

.theme-lexynex_dark_gold .brand-title{
  color:#fff;
  text-shadow:0 0 22px rgba(255,185,23,.18);
}

.theme-lexynex_dark_gold .brand-subtitle{
  color:#c7d2e1;
}

.theme-lexynex_dark_gold .nav a{
  background:rgba(255,255,255,.035);
  border-color:rgba(148,163,184,.18);
  color:#d8e2ef;
}

.theme-lexynex_dark_gold .nav a:hover,
.theme-lexynex_dark_gold .nav a.active{
  background:linear-gradient(90deg, rgba(255,185,23,.20), rgba(255,185,23,.07));
  border-color:rgba(255,185,23,.46);
  color:#fff8e5;
  box-shadow:0 0 0 1px rgba(255,185,23,.08), 0 14px 35px rgba(0,0,0,.22);
}

.theme-lexynex_dark_gold .topbar h1{
  color:#fff;
  letter-spacing:-.02em;
}

.theme-lexynex_dark_gold .topbar-user{
  color:#cbd5e1;
}

.theme-lexynex_dark_gold .card,
.theme-lexynex_dark_gold .mini-card,
.theme-lexynex_dark_gold .theme-choice,
.theme-lexynex_dark_gold .language-choice{
  background:linear-gradient(180deg, rgba(9,25,40,.94) 0%, rgba(7,20,33,.94) 100%);
  border-color:rgba(255,185,23,.22);
  color:var(--text);
  box-shadow:var(--shadow);
}

.theme-lexynex_dark_gold .card h2,
.theme-lexynex_dark_gold .card h3,
.theme-lexynex_dark_gold .form-group label,
.theme-lexynex_dark_gold .profile-language-dropdown label{
  color:#fff;
}

.theme-lexynex_dark_gold .card p,
.theme-lexynex_dark_gold .muted-text,
.theme-lexynex_dark_gold .mini-card span,
.theme-lexynex_dark_gold .table-sub{
  color:var(--muted);
}

.theme-lexynex_dark_gold .btn-primary{
  background:linear-gradient(180deg,#ffc94a 0%, #ffb917 100%);
  color:#101722;
  box-shadow:0 14px 30px rgba(255,185,23,.24);
}

.theme-lexynex_dark_gold .btn-primary:hover{
  background:linear-gradient(180deg,#ffd56f 0%, #ffc13d 100%);
  color:#080d14;
}

.theme-lexynex_dark_gold .btn-secondary,
.theme-lexynex_dark_gold .btn-small{
  background:rgba(255,255,255,.045);
  border-color:rgba(255,185,23,.30);
  color:#fff6df;
}

.theme-lexynex_dark_gold .btn-secondary:hover,
.theme-lexynex_dark_gold .btn-small:hover{
  background:rgba(255,185,23,.12);
}

.theme-lexynex_dark_gold input,
.theme-lexynex_dark_gold select,
.theme-lexynex_dark_gold textarea,
.theme-lexynex_dark_gold .profile-language-dropdown select{
  background:#07111f;
  border-color:rgba(255,185,23,.25);
  color:#f8fafc;
}

.theme-lexynex_dark_gold input:focus,
.theme-lexynex_dark_gold select:focus,
.theme-lexynex_dark_gold textarea:focus{
  border-color:rgba(255,185,23,.72);
  box-shadow:0 0 0 3px rgba(255,185,23,.16);
}

.theme-lexynex_dark_gold th{
  background:rgba(255,255,255,.035);
  color:#d4af37;
  border-bottom-color:rgba(255,185,23,.20);
}

.theme-lexynex_dark_gold td{
  border-bottom-color:rgba(255,185,23,.14);
}

.theme-lexynex_dark_gold tr:hover td{
  background:rgba(255,185,23,.055);
}

.theme-lexynex_dark_gold .badge{
  background:rgba(255,185,23,.14);
  color:#ffd56f;
  border:1px solid rgba(255,185,23,.26);
}

.theme-lexynex_dark_gold .alert-success{
  background:rgba(34,197,94,.12);
  color:#bbf7d0;
  border:1px solid rgba(34,197,94,.26);
}

.theme-lexynex_dark_gold .alert-error{
  background:rgba(239,68,68,.13);
  color:#fecaca;
  border:1px solid rgba(239,68,68,.28);
}

.theme-lexynex_dark_gold .theme-choice.selected,
.theme-lexynex_dark_gold .language-choice.selected{
  border-color:#ffb917;
  box-shadow:0 0 0 3px rgba(255,185,23,.18), 0 18px 48px rgba(0,0,0,.40);
}

/* Profile theme settings UI */

.theme-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(168px, 1fr));
  gap:14px;
  margin:12px 0 28px;
}

.theme-choice,
.language-choice{
  display:grid;
  gap:10px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background:#fbfdff;
  cursor:pointer;
}

.theme-choice input,
.language-choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.theme-choice.selected,
.language-choice.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-soft);
}

.theme-choice-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.theme-choice-head em{
  font-style:normal;
  color:var(--primary);
  font-size:12px;
  font-weight:800;
}

.theme-preview{
  display:grid;
  gap:6px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  min-height:92px;
}

.theme-preview i{
  display:block;
  height:7px;
  border-radius:999px;
  background:#cbd5e1;
}

.theme-preview i:nth-child(1){width:80%;}
.theme-preview i:nth-child(2){width:62%;}
.theme-preview i:nth-child(3){width:72%;}

.theme-preview b{
  display:inline-flex;
  width:max-content;
  margin-top:8px;
  padding:6px 10px;
  border-radius:10px;
  background:var(--primary);
  color:#fff;
  font-size:12px;
}

.theme-preview-vf_dark{background:#07111f;border-color:#14507d;}
.theme-preview-vf_dark i{background:#77a9cc;}
.theme-preview-vf_dark b{background:#22d3ee;color:#04111f;}

.theme-preview-calm_light{background:#f8fafc;}
.theme-preview-calm_dark{background:#111827;border-color:#344155;}
.theme-preview-calm_dark i{background:#8ea3bd;}
.theme-preview-classic{background:#fff;border-radius:3px;}
.theme-preview-classic b{border-radius:3px;background:#334155;}

.theme-preview-hernadi_light{
  background:linear-gradient(135deg,#fffaf7 0%,#f3e3df 100%);
  border-color:#dfc4bd;
}
.theme-preview-hernadi_light i{background:#c8aaa3;}
.theme-preview-hernadi_light b{background:#8f0505;color:#fff;}

.theme-preview-lexynex_dark_gold{
  background:
    radial-gradient(circle at top right, rgba(255,185,23,.22), transparent 45%),
    linear-gradient(135deg,#06111f 0%, #0b2238 100%);
  border-color:rgba(255,185,23,.45);
}
.theme-preview-lexynex_dark_gold i{background:#8fb3d1;}
.theme-preview-lexynex_dark_gold b{background:#ffb917;color:#101722;}

.language-card-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
  margin:12px 0 22px;
}

.language-choice strong{
  font-size:24px;
}

.language-choice span{
  font-weight:800;
}

@media(max-width:1300px){
  .theme-card-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media(max-width:1100px){
  .theme-card-grid,
  .language-card-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:700px){
  .theme-card-grid,
  .language-card-grid{
    grid-template-columns:1fr;
  }
}

/* v0.10t - Lexynex Dark Gold two-factor readability fixes */
.theme-lexynex_dark_gold .twofa-card,
.theme-lexynex_dark_gold .twofa-box {
  background: linear-gradient(180deg, rgba(9,25,40,.96) 0%, rgba(5,16,29,.96) 100%) !important;
  border-color: rgba(255,185,23,.26) !important;
  color: #f8fafc !important;
}

.theme-lexynex_dark_gold .twofa-box h3,
.theme-lexynex_dark_gold .twofa-label,
.theme-lexynex_dark_gold .twofa-form label {
  color: #ffffff !important;
}

.theme-lexynex_dark_gold .twofa-box .muted-text,
.theme-lexynex_dark_gold .twofa-card .muted-text {
  color: #cbd5e1 !important;
}

.theme-lexynex_dark_gold .twofa-secret,
.theme-lexynex_dark_gold .twofa-uri,
.theme-lexynex_dark_gold .twofa-form input {
  background: #07111f !important;
  border: 1px solid rgba(255,185,23,.30) !important;
  color: #f8fafc !important;
}

.theme-lexynex_dark_gold .twofa-secret,
.theme-lexynex_dark_gold .twofa-uri {
  min-height: 44px;
  border-radius: 12px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.theme-lexynex_dark_gold .twofa-uri {
  width: 100%;
}

.theme-lexynex_dark_gold .twofa-form input::placeholder {
  color: #94a3b8 !important;
}

.theme-lexynex_dark_gold .twofa-qr {
  background: #ffffff !important;
  border-color: rgba(255,185,23,.35) !important;
}

.theme-lexynex_dark_gold .twofa-status.disabled {
  background: #fff7ed !important;
  color: #7c2d12 !important;
}

.theme-lexynex_dark_gold .twofa-status.enabled {
  background: rgba(34,197,94,.13) !important;
  color: #bbf7d0 !important;
  border-color: rgba(34,197,94,.32) !important;
}
