/* =========================================================
   VELVET ADMIN SETTINGS — Final Gold Edition
   Refined UI for control panel, dark + gold luxury style
========================================================= */

:root {
    --gold: #d4af37;
    --gold-dark: #b38e2e;
    --surface: #121212;
    --card: #1a1a1a;
    --border: #2b2b2b;
    --text: #f5f5f5;
    --muted: #999;
    --danger: #ff4a5e;
    --success: #00ff83;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  
  /* ---------- Layout ---------- */
  .adminsettings-section {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 32px;
    color: var(--text);
    font-family: "Inter", sans-serif;  }
  
  /* ---------- Header ---------- */
  .adminsettings-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: var(--shadow);
  }
  
  .adminsettings-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* ---------- Card Grid ---------- */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }
  
  /* ---------- Settings Card ---------- */
  .settings-card {
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
  }
  
  .settings-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 26px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
  }
  
  .settings-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }
  
  .settings-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 12px;
  }
  
  /* ---------- Form Elements ---------- */
  select,
  input[type="file"],
  input[type="text"],
  input[type="checkbox"],
  input[type="radio"] {
    font-family: inherit;
  }
  
  select,
  input[type="file"] {
    border: 1px solid var(--border);

    border-radius: 10px;
    padding: 10px 12px;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.25s ease;
  }
  
  select:focus,
  input[type="file"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .btn.gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
    margin-top: 10px;
  }
  
  .btn.gold:hover {
    background: var(--gold-dark);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
  }
  
  .btn.pill {
    border-radius: 50px;
    padding: 8px 16px;
  }
  
  .btn.danger {
    border: 1px solid var(--danger);
    color: var(--danger);
  }
  
  .btn.danger:hover {
    background: var(--danger);
    color: #000;
    box-shadow: 0 6px 18px rgba(255, 74, 94, 0.3);
  }
  
  /* ---------- Theme Toggle ---------- */
  .theme-group {
    display: flex;
    gap: 14px;
    margin-top: 8px;
  }
  
  .theme-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.25s ease;
  }
  
  .theme-option:hover {
    border-color: var(--gold);
  }
  
  .theme-option input {
    accent-color: var(--gold);
  }
  
  /* ---------- Switch List ---------- */
  .switch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .switch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    transition: all 0.25s ease;
    cursor: pointer;
  }
  
  .switch:hover {
    border-color: var(--gold);
  }
  
  .switch input {
    accent-color: var(--gold);
  }
  
  /* ---------- Settings Blocks ---------- */
  .settings-block {
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
  }
  
  .block-head h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* ---------- Log Table ---------- */
  .log-table-wrap {
    overflow-x: auto;
  }
  
  .log-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
  }
  
  .log-table th,
  .log-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }
  
  .log-table th {
    color: var(--gold);
    font-weight: 600;
  }
  
  .log-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
  }
  
  /* ---------- Backup Grid ---------- */
  .backup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
  }
  
  .backup-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s ease;
  }
  
  .backup-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
  }
  
  /* ---------- Version Line ---------- */
  .version-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
  }
  
  .version-line span {
    font-size: 0.95rem;
  }
  
  .chip {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border-radius: 20px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
  }
  
  /* ---------- No Results ---------- */
  .no-results {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    margin-top: 20px;
  }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 768px) {
    .card-grid,
    .backup-grid {
      grid-template-columns: 1fr;
    }
  
    .block-head {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  
    .btn.w-full {
      width: 100%;
    }
  }
  
  /* ========= Admin Settings — Page Header ========= */
.adminsettings-header{
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  margin-bottom: 18px;
  background: var(--surface, #181818);
  border-bottom: 1px solid rgba(212,175,55,.15);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

/* -------- Title -------- */
.adminsettings-header .title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold, #d4af37);
  text-shadow: 0 0 10px rgba(212,175,55,.4);
  letter-spacing: .25px;
}
.adminsettings-header .title i{
  font-size: 1.2rem;
  opacity: .9;
}

/* -------- Tools -------- */
.adminsettings-header .tools{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Selects / Inputs */
.adminsettings-header select,
.adminsettings-header input[type="search"]{
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text, #f5f5f5);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.adminsettings-header select:hover,
.adminsettings-header input[type="search"]:hover{
  border-color: rgba(212,175,55,.25);
}
.adminsettings-header select:focus,
.adminsettings-header input[type="search"]:focus{
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}
.adminsettings-header input[type="search"]{
  width: min(340px, 40vw);
}

/* -------- Buttons -------- */
.adminsettings-header .btn-gold,
.adminsettings-header .chip{
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid rgba(212,175,55,.35);
  background: transparent;
  color: var(--gold, #d4af37);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
}
.adminsettings-header .btn-gold:hover,
.adminsettings-header .chip:hover{
  background: linear-gradient(90deg, rgba(212,175,55,.12), rgba(212,175,55,.05));
  border-color: rgba(212,175,55,.5);
  transform: translateY(-1px);
}
.adminsettings-header .btn-gold:active{
  transform: translateY(1px);
}

/* -------- Icon toggle / state indicator -------- */
.adminsettings-header .status-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.25);
  color: var(--gold, #d4af37);
  font-size: 0.85rem;
  font-weight: 500;
}
.adminsettings-header .status-chip i{
  font-size: 0.9rem;
}

/* -------- Responsive -------- */
@media (max-width: 900px){
  .adminsettings-header{
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 10px;
    gap: 12px;
  }
  .adminsettings-header .title{ font-size: 1.15rem; }
  .adminsettings-header .tools{
    width: 100%;
    flex-wrap: wrap;
  }
  .adminsettings-header input[type="search"]{
    width: 100%;
  }
}
