﻿/* Paginа: portal/sistema/settings.html — CSS extraido automaticamente */
:root {
      --bg-main:#F5F2E9;
      --bg-secondary:#181818;
      --bg-card:rgba(255,255,255,.045);
      --bg-card-strong:rgba(255,255,255,.065);

      --gold:#16804A;
      --gold-soft:rgba(22,128,74,.10);

      --green:#16804A;
      --green-soft:rgba(22,128,74,.10);

      --red:#C93632;
      --red-soft:rgba(201,54,50,.10);

      --text:#111111;
      --text-soft:#3b3b3b;
      --text-muted:#6f6a5f;

      --border:rgba(17,17,17,.10);

      --radius:18px;
      --radius-small:13px;
      --nav-height:72px;
    }

    * {
      box-sizing:border-box;
    }

    html {
      scroll-behavior:smooth;
    }

    body {
      margin:0;
      min-height:100vh;
      background:var(--bg-main);
      color:var(--text);
      font-family:'Montserrat',sans-serif;
      overflow-x:hidden;
    }

    body::before {
      content:"";
      position:fixed;
      inset:0;
      background:
        linear-gradient(rgba(11,11,15,.94),rgba(11,11,15,.98)),
        url("/imagens/logoaya2.png");
      background-position:center;
      background-repeat:no-repeat;
      background-size:430px;
      opacity:.16;
      pointer-events:none;
      z-index:-1;
    }

    a {
      color:inherit;
      text-decoration:none;
    }

    button,
    input,
    select {
      font-family:inherit;
    }

    /* =========================
       SIDEBAR DESKTOP
    ========================= */

    .sidebar {
      position:fixed;
      top:0;
      left:0;
      width:250px;
      height:100vh;
      background:rgba(9,9,13,.94);
      border-right:1px solid var(--border);
      backdrop-filter:blur(18px);
      -webkit-backdrop-filter:blur(18px);
      padding:22px 14px;
      z-index:1000;
      display:flex;
      flex-direction:column;
    }

    .brand {
      display:flex;
      align-items:center;
      gap:11px;
      padding:3px 10px 24px;
    }

    .brand img {
      width:40px;
      height:40px;
      object-fit:contain;
    }

    .brand-text {
      line-height:1.05;
    }

    .brand-title {
      font-size:14px;
      font-weight:800;
      letter-spacing:.5px;
    }

    .brand-subtitle {
      margin-top:4px;
      font-size:10px;
      color:var(--text-muted);
      text-transform:uppercase;
      letter-spacing:1px;
    }

    .nav-section-title {
      padding:8px 11px 7px;
      color:var(--text-muted);
      font-size:9px;
      text-transform:uppercase;
      letter-spacing:1.5px;
      font-weight:700;
    }

    .side-nav {
      display:flex;
      flex-direction:column;
      gap:3px;
    }

    .side-link {
      display:flex;
      align-items:center;
      gap:12px;
      padding:11px 12px;
      border-radius:12px;
      color:var(--text-soft);
      font-size:12px;
      font-weight:600;
      transition:.2s ease;
    }

    .side-link i {
      width:20px;
      text-align:center;
      font-size:17px;
    }

    .side-link:hover {
      background:rgba(255,255,255,.045);
      color:var(--text);
    }

    .side-link.active {
      color:var(--gold);
      background:var(--gold-soft);
    }

    .side-bottom {
      margin-top:auto;
    }

    .side-profile {
      display:flex;
      align-items:center;
      gap:10px;
      padding:12px 10px;
      margin-bottom:7px;
      border:1px solid var(--border);
      background:rgba(255,255,255,.025);
      border-radius:14px;
    }

    .avatar {
      width:36px;
      height:36px;
      border-radius:50%;
      display:flex;
      align-items:center;
      justify-content:center;
      background:linear-gradient(135deg,#222,#111);
      border:1px solid rgba(255,215,0,.3);
      color:var(--gold);
      font-weight:800;
      font-size:12px;
      overflow:hidden;
    }

    .avatar img {
      width:100%;
      height:100%;
      object-fit:cover;
    }

    .profile-mini {
      min-width:0;
    }

    .profile-mini strong {
      display:block;
      font-size:11px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    .profile-mini span {
      color:var(--text-muted);
      font-size:9px;
    }

    /* =========================
       MAIN
    ========================= */

    .main {
      margin-left:250px;
      min-height:100vh;
      padding:24px 28px 45px;
    }

    .topbar {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:15px;
      margin-bottom:28px;
    }

    .topbar-left {
      display:flex;
      align-items:center;
      gap:13px;
    }

    .back-btn {
      width:40px;
      height:40px;
      border:1px solid var(--border);
      background:var(--bg-card);
      color:var(--text-soft);
      border-radius:12px;
      display:flex;
      align-items:center;
      justify-content:center;
      transition:.2s ease;
    }

    .back-btn:hover {
      color:var(--gold);
      border-color:rgba(255,215,0,.25);
    }

    .page-title {
      margin:0;
      font-size:22px;
      font-weight:800;
    }

    .page-subtitle {
      margin:4px 0 0;
      color:var(--text-muted);
      font-size:11px;
    }

    .top-actions {
      display:flex;
      gap:8px;
    }

    .icon-btn {
      width:40px;
      height:40px;
      border:1px solid var(--border);
      background:var(--bg-card);
      color:var(--text-soft);
      border-radius:12px;
      display:flex;
      align-items:center;
      justify-content:center;
      position:relative;
      transition:.2s ease;
    }

    .icon-btn:hover {
      color:var(--gold);
    }

    .notification-dot {
      position:absolute;
      width:7px;
      height:7px;
      background:var(--red);
      border-radius:50%;
      top:8px;
      right:9px;
    }

    /* =========================
       SETTINGS
    ========================= */

    .settings-layout {
      max-width:1100px;
      display:grid;
      grid-template-columns:220px 1fr;
      gap:20px;
      margin:auto;
    }

    .settings-menu {
      position:sticky;
      top:24px;
      align-self:start;
      background:var(--bg-card);
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:9px;
    }

    .settings-menu button {
      width:100%;
      display:flex;
      align-items:center;
      gap:10px;
      border:0;
      background:transparent;
      color:var(--text-soft);
      padding:11px 12px;
      border-radius:11px;
      font-size:11px;
      font-weight:600;
      text-align:left;
      transition:.2s ease;
    }

    .settings-menu button i {
      font-size:16px;
      width:20px;
      text-align:center;
    }

    .settings-menu button:hover {
      background:rgba(255,255,255,.04);
      color:var(--text);
    }

    .settings-menu button.active {
      color:var(--gold);
      background:var(--gold-soft);
    }

    .settings-content {
      display:flex;
      flex-direction:column;
      gap:16px;
    }

    .settings-section {
      scroll-margin-top:25px;
      background:var(--bg-card);
      border:1px solid var(--border);
      border-radius:var(--radius);
      overflow:hidden;
    }

    .section-header {
      padding:19px 20px 15px;
      border-bottom:1px solid var(--border);
    }

    .section-header h2 {
      margin:0;
      font-size:14px;
      font-weight:800;
    }

    .section-header p {
      margin:5px 0 0;
      color:var(--text-muted);
      font-size:10px;
      line-height:1.6;
    }

    .setting-row {
      min-height:68px;
      padding:14px 20px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      border-bottom:1px solid rgba(255,255,255,.045);
    }

    .setting-row:last-child {
      border-bottom:0;
    }

    .setting-info {
      min-width:0;
    }

    .setting-title {
      font-size:12px;
      font-weight:700;
      margin-bottom:3px;
    }

    .setting-description {
      color:var(--text-muted);
      font-size:10px;
      line-height:1.5;
    }

    .setting-value {
      color:var(--text-soft);
      font-size:10px;
      white-space:nowrap;
    }

    .setting-button {
      border:1px solid var(--border);
      background:rgba(255,255,255,.035);
      color:var(--text-soft);
      border-radius:10px;
      padding:8px 11px;
      font-size:10px;
      font-weight:600;
      white-space:nowrap;
      transition:.2s ease;
    }

    .setting-button:hover {
      color:var(--gold);
      border-color:rgba(255,215,0,.25);
    }

    .setting-button.danger {
      color:#ef8a83;
    }

    .setting-button.danger:hover {
      color:#ffaaa4;
      border-color:rgba(179,38,30,.35);
      background:var(--red-soft);
    }

    /* =========================
       TOGGLE
    ========================= */

    .switch {
      position:relative;
      width:43px;
      height:24px;
      flex-shrink:0;
    }

    .switch input {
      opacity:0;
      width:0;
      height:0;
    }

    .slider {
      position:absolute;
      inset:0;
      cursor:pointer;
      background:#29292f;
      border:1px solid rgba(255,255,255,.08);
      border-radius:30px;
      transition:.2s;
    }

    .slider::before {
      content:"";
      position:absolute;
      width:17px;
      height:17px;
      left:3px;
      top:2px;
      background:#aaa;
      border-radius:50%;
      transition:.2s;
    }

    .switch input:checked + .slider {
      background:rgba(34,139,34,.5);
      border-color:rgba(34,139,34,.65);
    }

    .switch input:checked + .slider::before {
      transform:translateX(18px);
      background:#fff;
    }

    /* =========================
       SELECT
    ========================= */

    .settings-select {
      min-width:150px;
      border:1px solid var(--border);
      background:#15151b;
      color:var(--text-soft);
      border-radius:10px;
      padding:8px 10px;
      outline:none;
      font-size:10px;
    }

    .settings-select:focus {
      border-color:rgba(255,215,0,.35);
    }

    /* =========================
       PROFILE PREVIEW
    ========================= */

    .profile-preview {
      display:flex;
      align-items:center;
      gap:14px;
      padding:18px 20px;
      border-bottom:1px solid var(--border);
    }

    .profile-avatar-large {
      width:56px;
      height:56px;
      border-radius:50%;
      background:linear-gradient(135deg,#25252b,#111);
      border:1px solid rgba(255,215,0,.3);
      display:flex;
      align-items:center;
      justify-content:center;
      color:var(--gold);
      font-weight:800;
      overflow:hidden;
      flex-shrink:0;
    }

    .profile-avatar-large img {
      width:100%;
      height:100%;
      object-fit:cover;
    }

    .profile-preview-info strong {
      display:block;
      font-size:13px;
    }

    .profile-preview-info span {
      display:block;
      margin-top:3px;
      color:var(--text-muted);
      font-size:10px;
    }

    /* =========================
       ACCOUNT STATUS
    ========================= */

    .account-status {
      margin:18px 20px;
      padding:13px;
      border-radius:12px;
      border:1px solid rgba(34,139,34,.22);
      background:var(--green-soft);
      display:flex;
      align-items:center;
      gap:10px;
    }

    .account-status i {
      color:#58bd58;
      font-size:17px;
    }

    .account-status strong {
      display:block;
      font-size:10px;
    }

    .account-status span {
      display:block;
      margin-top:2px;
      color:var(--text-muted);
      font-size:9px;
    }

    /* =========================
       MODAL
    ========================= */

    .modal-content {
      background:#111116;
      border:1px solid var(--border);
      color:var(--text);
      border-radius:18px;
      overflow:hidden;
    }

    .modal-header {
      border-bottom:1px solid var(--border);
    }

    .modal-footer {
      border-top:1px solid var(--border);
    }

    .modal-title {
      font-size:14px;
      font-weight:800;
    }

    .btn-close {
      filter:invert(1);
      opacity:.7;
    }

    .form-label {
      color:var(--text-soft);
      font-size:10px;
      font-weight:600;
    }

    .form-control {
      background:#18181e;
      border:1px solid var(--border);
      color:var(--text);
      border-radius:10px;
      font-size:11px;
    }

    .form-control:focus {
      background:#18181e;
      color:var(--text);
      border-color:rgba(255,215,0,.35);
      box-shadow:none;
    }

    .btn-aya {
      border:0;
      background:var(--gold);
      color:#111;
      font-weight:800;
      font-size:10px;
      border-radius:10px;
      padding:10px 15px;
    }

    .btn-aya:hover {
      background:#ffe54c;
      color:#111;
    }

    .btn-secondary-aya {
      border:1px solid var(--border);
      background:rgba(255,255,255,.035);
      color:var(--text-soft);
      font-size:10px;
      border-radius:10px;
      padding:10px 15px;
    }

    /* =========================
       TOAST
    ========================= */

    .toast-container {
      z-index:2000;
    }

    .toast {
      background:#17171d;
      border:1px solid var(--border);
      color:var(--text);
      border-radius:13px;
      font-size:10px;
    }

    .toast .toast-body {
      padding:12px 14px;
    }

    /* =========================
       MOBILE NAV
    ========================= */

    .mobile-nav {
      display:none;
    }

    /* =========================
       RESPONSIVE
    ========================= */

    @media (max-width:991px) {
      .sidebar {
        display:none;
      }

      .main {
        margin-left:0;
        padding:18px 16px calc(var(--nav-height) + 25px);
      }

      .settings-layout {
        grid-template-columns:1fr;
      }

      .settings-menu {
        position:static;
        display:flex;
        gap:5px;
        overflow-x:auto;
        padding:7px;
        scrollbar-width:none;
      }

      .settings-menu::-webkit-scrollbar {
        display:none;
      }

      .settings-menu button {
        width:auto;
        min-width:max-content;
        padding:9px 11px;
      }

      .settings-menu button span {
        display:none;
      }

      .mobile-nav {
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        height:var(--nav-height);
        display:flex;
        align-items:center;
        justify-content:space-around;
        background:rgba(9,9,13,.95);
        border-top:1px solid var(--border);
        backdrop-filter:blur(18px);
        -webkit-backdrop-filter:blur(18px);
        z-index:1000;
      }

      .mobile-link {
        width:20%;
        height:100%;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;
        color:var(--text-muted);
        font-size:8px;
        font-weight:600;
      }

      .mobile-link i {
        font-size:18px;
      }

      .mobile-link.active {
        color:var(--gold);
      }
    }

    @media (max-width:600px) {
      .topbar {
        margin-bottom:20px;
      }

      .page-title {
        font-size:18px;
      }

      .page-subtitle {
        font-size:9px;
      }

      .top-actions .icon-btn:nth-child(1) {
        display:none;
      }

      .settings-section {
        border-radius:15px;
      }

      .section-header {
        padding:17px 16px 13px;
      }

      .setting-row {
        padding:14px 16px;
        gap:10px;
      }

      .setting-title {
        font-size:11px;
      }

      .setting-description {
        font-size:9px;
      }

      .setting-button {
        padding:7px 9px;
        font-size:9px;
      }

      .settings-select {
        min-width:120px;
      }

      .profile-preview {
        padding:16px;
      }
    }
          /* ===== IEPLUS_LIGHT_OVERRIDES : IÃŠ+ tema claro (estrutura/navegaÃ§Ã£o preta com texto claro) ===== */
        .topbar,.sidebar,.sidebar-header,.bottom-navigation,.bottom-nav,.side-nav,.nav-drawer,.app-nav{background:#111111 !important;}
        .topbar,.topbar *,.sidebar *,.bottom-navigation *,.bottom-navigation a,.bottom-navigation i,.bottom-navigation span{color:rgba(255,255,255,.85) !important;}
        .sidebar a.active,.sidebar .active,.bottom-navigation .active{color:#8FE6B4 !important;}
        .sidebar a.active,.bottom-navigation .active{background:rgba(22,128,74,.30) !important;}