@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
* {
    font-family: "Poppins", sans-serif;
    cursor: url('../assets/images/custom-cursor.png'), auto !important;
  }

.card {
    border-radius: 5px !important;
    box-shadow: 0px 3px 5px 0.5px #1d2225 !important;
    transition: all 0.1s ease-in-out !important;
    font-family: "Inter", sans-serif !important;
    font-weight: 600 !important;
    background-color: rgb(11, 11, 17) !important ;
}

.card:hover {
    box-shadow: 0px 3px 7px 5px #0b131d !important;
}

.topnav {
    background-color: #0c1622 !important;
}

.topnav-navbar-dark {
    background-color: transparent !important;
}

.topnav-navbar-dark .nav-user {
    background-color: transparent !important;
    border: none !important;
}

body {
    font-family: "Inter", sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    color: white !important;
    font-style: normal !important;
    background-image: linear-gradient(to right, #03060b, #02060b, #02050b, #01050b, #00050b) !important;
}

:root {
    --bg: #0b1220;
    --panel: rgba(255, 255, 255, 0.06);
    --panel2: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.10);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.65);
    --accent: #2d8cff;
    --good: #22c55e;
    --warn: #f59e0b;
    --bad: #ef4444;
    --sidebar-w: 260px;
    --topbar-h: 70px;
}

body {
    background: radial-gradient(1200px 600px at 20% 0%, rgba(45, 140, 255, .20), transparent 55%),
        radial-gradient(900px 500px at 90% 10%, rgba(34, 197, 94, .18), transparent 55%),
        var(--bg) !important;
}

.dash-shell {
    min-height: 100vh;
    display: flex;
    color: var(--text);
}

/* Sidebar */
.dash-sidebar {
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
}

.container-fluid {
    display: inline;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 14px;
}

.brand .logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 140, 255, 0.18);
    border: 1px solid rgba(45, 140, 255, 0.35);
    font-weight: 800;
}

.brand .txt b {
    font-size: 13px;
    display: block;
}

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

.nav-title {
    margin: 16px 10px 8px 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    color: var(--muted);
}

.nav-itemx {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none !important;
    border: 1px solid transparent;
}

.nav-itemx:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

.nav-itemx.active {
    background: rgba(45, 140, 255, 0.16);
    border-color: rgba(45, 140, 255, 0.35);
}

.ico {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 13px;
}

/* Main */
.dash-main {
    flex: 1;
    padding: 18px 20px 26px 20px;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.crumb {
    color: var(--muted);
    font-size: 13px;
}

.crumb b {
    color: var(--text);
}

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

.btnx {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none !important;
}

.btnx:hover {
    background: rgba(255, 255, 255, 0.10);
}

.btnx.primary {
    background: rgba(45, 140, 255, 0.92);
    border-color: rgba(45, 140, 255, 0.40);
    color: #fff;
    font-weight: 700;
}

.btnx.primary:hover {
    filter: brightness(.96);
}

.page-head {
    margin-top: 14px;
    padding: 14px 2px 8px 2px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.page-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.page-title .badgeicon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.32);
    font-size: 20px;
}

.page-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-title p {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 13px;
    max-width: 820px;
}

/* Widgets */
.widgets {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 14px;
}

.dash-sidebar {
    width: var(--sidebar-w);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    position: fixed;        /* <- troca aqui */
    left: 0;
    top: 0;
    height: 100vh;
    overflow: auto;
    z-index: 1040;
  
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
  }

.widget {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.widget .w-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.w-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 13px;
}

.drag-handle {
    cursor: grab;
    user-select: none;
    opacity: .85;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
}

.widget .w-body {
    padding: 14px;
}

/* KPI cards */
.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .kpis {
        grid-template-columns: 1fr;
    }
}

.kpi {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    padding: 12px;
}

.kpi .k {
    color: var(--muted);
    font-size: 12px;
}

.kpi .v {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 900;
}

.kpi .s {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

/* Project cards grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.p-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 3px;
}

.p-card .top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.p-card .title {
    font-weight: 900;
    font-size: 14px;
    line-height: 1.2;
}

.p-card .sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    white-space: nowrap;
}

.pill.good {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.14);
}

.pill.warn {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.14);
}

.pill.bad {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.14);
}

.p-card .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.p-card a {
    color: #fff;
    text-decoration: none !important;
    font-weight: 800;
}

.p-card a:hover {
    text-decoration: underline !important;
}

.ghost {
    opacity: 0.35;
}

/* Today tasks list */
.task-item {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.task-item b {
    font-size: 13px;
}

.task-item .meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.task-item .left {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.task-item .grab {
    cursor: grab;
    user-select: none;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    opacity: .9;
}

/* Select2 dark-ish */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    min-height: 38px;
}

.sb-dropdown {
    margin: 6px 0;
}

.sb-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
}

.sb-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

.sb-toggle .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-sub {
    display: none;
    margin: 6px 0 0 12px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.sb-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none !important;
    border: 1px solid transparent;
    font-size: 13px;
}

a:hover {
    color: white !important;
}

.sb-sub a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

.sb-sub .mini-ico {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.sb-dropdown.open .sb-sub {
    display: block;
}

.sb-caret {
    opacity: .8;
}

.switch {
    display: inline-block;
    position: relative;
}

.switch__input {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 0.5px;
    width: 0.5px;
    margin: -0.5px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.switch__label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #2B2B2B;
    border: 2.5px solid #5B5B5B;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.46, .03, .52, .96);
    margin-top: 20px;
}

.switch__indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(-36%);
    display: block;
    width: 20px;
    height: 20px;
    background-color: #7B7B7B;
    border-radius: 9999px;
    box-shadow: 5px 0px 0 0 rgba(#000000, 0.2) inset;

    &::before,
    &::after {
        position: absolute;
        content: '';
        display: block;
        background-color: #FFFFFF;
        border-radius: 9999px;
    }

    &::before {
        top: 3.5px;
        left: 3.5px;
        width: 4.5px;
        height: 4.5px;
        background-color: #FFFFFF;
        opacity: 0.6;
    }

    &::after {
        bottom: 4px;
        right: 3px;
        width: 7px;
        height: 7px;
        background-color: #FFFFFF;
        opacity: 0.8;
    }
}

.switch__decoration {
    position: absolute;
    top: 65%;
    left: 50%;
    display: block;
    width: 2.5px;
    height: 2.5px;
    background-color: #FFFFFF;
    border-radius: 9999px;
    animation: twinkle 0.8s infinite -0.6s;

    &::before,
    &::after {
        position: absolute;
        display: block;
        content: '';
        width: 2.5px;
        height: 2.5px;
        background-color: #FFFFFF;
        border-radius: 9999px;
    }

    &::before {
        top: -10px;
        left: 5px;
        opacity: 1;
        animation: twinkle 0.6s infinite;
    }

    &::after {
        top: -3.5px;
        left: 15px;
        animation: twinkle 0.6s infinite -0.2s;
    }
}

@keyframes twinkle {
    50% {
        opacity: 0.2;
    }
}

.switch__indicator {

    &,
    &::before,
    &::after {
        transition: all 0.4s cubic-bezier(.46, .03, .52, .96);
    }
}

.switch__input:checked+.switch__label {
    background-color: #8FB5F5;
    border-color: #347CF8;

    .switch__indicator {
        background-color: #ECD21F;
        box-shadow: none;
        transform: translate(-50%, -50%) translateX(36%);

        &::before,
        &::after {
            display: none;
        }
    }

    .switch__decoration {
        top: 50%;
        transform: translate(0%, -50%);
        animation: cloud 8s linear infinite;

        width: 10px;
        height: 10px;

        &::before {
            width: 5px;
            height: 5px;
            top: auto;
            bottom: 0;
            left: -4px;
            animation: none;
        }

        &::after {
            width: 7.5px;
            height: 7.5px;
            top: auto;
            bottom: 0;
            left: 8px;
            animation: none;
        }

        &,
        &::before,
        &::after {
            border-radius: 9999px 9999px 0 0;
        }

        &::after {
            border-bottom-right-radius: 9999px;
        }
    }
}

@keyframes cloud {
    0% {
        transform: translate(0%, -50%);
    }

    50% {
        transform: translate(-50%, -50%);
    }

    100% {
        transform: translate(0%, -50%);
    }
}

@media (max-width: 768px) {
    #nav-users {
        display: none;
        visibility: hidden;
    }
}

.dropdown-menu-users {
    min-width: 260px;
    max-width: 320px;
    inset: auto auto 0 0;
}

.dropdown-menu-users .users-scroll {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-menu-users .hover-bg:hover {
    background: rgba(0, 0, 0, .03);
    transition: background .15s ease;
}
  .wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .dash-sidebar{
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-w);
    z-index: 1040;
    overflow-y: auto;
  }
  
  .content-page{
    margin-left: var(--sidebar-w);
  }
  
  @media (max-width: 991.98px){
    .dash-sidebar{
      transform: translateX(-105%);
      transition: transform .25s ease;
      box-shadow: 0 10px 30px rgba(0,0,0,.2);
    }
    body.sidebar-open .dash-sidebar{
      transform: translateX(0);
    }
  
    /* no mobile o conteúdo não fica empurrado */
    .content-page{
      margin-left: 0;
    }
  
    .sidebar-overlay{
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.45);
      z-index: 1035;
    }
    body.sidebar-open .sidebar-overlay{
      display: block;
    }
  }

  .footer{
    padding: 1px !important;     
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(10px);
  }
  
  .footer .row{
    align-items: center;
  }
  
  .footer .container-fluid{
    padding-left: 16px;
    padding-right: 16px;
  }

  
  .wrapper{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .content-page{
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }
  
  .content{
    flex: 1 0 auto;
  }

  #user-dropdown .dropdown-menu { 
    display: none; 
  }
  #user-dropdown.open .dropdown-menu { 
    display: block; 
  }
  
  #user-dropdown { 
    position: relative; 
  }
  
  #user-dropdown .dropdown-menu{
    position: absolute;
    right: 0;
    top: calc(60% + 8px);
    z-index: 2000;
  
    min-width: 220px;
    max-width: 320px;
    width: max-content;
    box-sizing: border-box;
  }
  
  .navbar-custom, .topnav-navbar, .container-fluid {
    overflow: visible !important;
  }
  
  @media (max-width: 575.98px){
    #user-dropdown .dropdown-menu{
      position: fixed;
      left: 12px;
      right: 12px;
      top: 64px;
      width: auto;
      max-width: none;
      min-width: 0;
  
      border-radius: 14px;
      z-index: 3000;
    }
  }