/* ============================================
   DASHBOARD VGI
   ============================================ */

.smooth-back-to-top-button.btn-right-side {
   
    display: none;
}


.wrapper-dashboard {
    padding: 60px 130px 130px;
    max-width: 1630px;
    justify-self: anchor-center;
    width: 100%;
}

img.logo-dashboard {
    height: 62px !important;
   
}

.post-info-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-categorias {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: #9c9c9c;
    line-height: 1.35em;
    padding: 2px 0 0;
}



p.alert.alert-danger {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-self: center;
    height: 100vh;
    width: 100%;
    padding: 40px;
}


/* Stats */
.stats-grid {
    display: flex;
    gap: 7px;
    margin-bottom: 30px;
    width: 100%;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    gap: 5px;
    padding: 5px 10px;
    box-shadow: 0px 0px 0px 1px rgb(185 185 185);
    border-radius: 50px;

}

.filter-status-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

label.filter-radio-label {
    background: #eeeeee;
    padding: 0 14px;
    border-radius: 10px;
    height: 50px;
    color: #000;
}

.filter-radio-label {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-radio-label input[type="radio"] {
   display: none;   
}

.filter-radio-label.ativos:has(input:checked) {
    background: #00c106;
    color: #fff;
}

.filter-radio-label.inativos:has(input:checked) {
    background: #fb2603;
    color: #fff;
}


.stat-number {
    display: block;
    font-weight: 700;
    color: #000;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Busca e Filtros */
.search-filters-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-filters-wrap .autocomplete-wrap {
    flex: 2;
    min-width: 250px;
    order: 2;
}

.search-filters-wrap .filter-status-wrap {
    display: flex;
    gap: 10px;
    align-self: center;
    order: 3;
}

.search-filters-wrap .filter-select {
    border: none;
    font-size: 14px;
    font-family: "Source Sans Pro", sans-serif;
    background: #efefef;
    cursor: pointer;
    min-width: 140px;
    width: auto;
    min-height: unset;
    max-height: unset;
    line-height: 1em;
    height: 50px;
    padding: 0 13px;
    border-radius: 10px;
}

.search-filters-wrap .filter-select:focus {
    outline: none;
    border-color: #000;
}


p.dashboard-welcome {
    font-size: 34px;
    margin: 0 0 40px;
    font-weight: 300;
}


.wrapper-dashboard-actions {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    flex-direction: row;
    justify-content: flex-end;
}

.dashboard-header {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: solid 1px;
    margin: 0 0 38px;
}

a.add-link {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: #fff;
    height: 34px;
    line-height: 1em;
    border-radius: 50px;
    color: #000;
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 0 19px;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Source Sans Pro", sans-serif;
    transition: border-color 0.25s ease;
    display: flex;
    height: 50px;
    border: none;
    background: #eeeeee;
    transition: all 350ms ease;
     box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
}

.search-input:focus {
    box-shadow: 0px 0px 0px 3px rgba(0, 0, 0, 1);
    outline: none;
    background: #fff;
}

/* Lista de posts */
.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 10px;
}

.total-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.post-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.post-item:hover {
    background: #f5f5f5;
}

.post-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
}

.post-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e8e8e8;
    flex-shrink: 0;
}

.post-title {
    flex: 1;
    font-weight: 500;
    color: #333;
    display: flex;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}


.post-type {
    font-size: 12px;
    text-transform: uppercase;
    padding: 2px 0;
    border-radius: 4px;
    width: 60px;
    text-align: right;
}


.post-type.artistas {
    color: #000;

}
.post-type.criativos {
    color: #ff1764;
    
}  

.post-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.post-status.status-publish {
    background: #e8f5e9;
    color: #2e7d32;
}

.post-status.status-draft {
    background: #fff3e0;
    color: #e65100;
}

.post-status.status-pending {
    background: #fff8e1;
    color: #f57f17;
}

.post-status.status-private {
    background: #fce4ec;
    color: #c62828;
}

.post-edit-btn {
   
    color: #fff;
    padding: 0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
   
    transition: background 0.2s ease;
}

.post-edit-btn:hover {
    background: #000;
}
.post-edit-btn:hover svg {
    fill: #fff;
   
}

/* Load more */
.load-more-wrap {
    text-align: center;
    padding: 20px 0;
}

.load-more-btn {
    padding: 10px 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.load-more-btn:hover {
    background: #222;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Responsivo */

@media (max-width: 1200px) {

    .wrapper-dashboard {
    padding: 60px;
    }

    .post-info-wrap {
   
    flex-basis: 100px;
}

}

@media (max-width: 767px) {

    .wrapper-dashboard {
    padding: 30px;
    }



    .search-filters-wrap {
       
    }

    .search-filters-wrap .filter-status-wrap {
        flex-wrap: wrap;
        
    }

    .wrapper-dashboard-actions {
    display: flex;
    gap: 0;
    padding: 20px 0;
    flex-direction: column;
}

    .search-filters-wrap .filter-select {
        flex: 1;
        min-width: 100px;
    }

    .post-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 13px 0;
        font-size: 14px;
    }

    .post-title {
        width: 100%;
        order: 0;
        font-size: 17px;
    }

    .post-thumb {
        order: -1;
    }

    .post-edit-btn {
        margin-left: auto;
    }

    .post-edit-btn svg {
    width: 17px;
    height: auto;
}

span.post-type {
    font-size: 10px;
    background: #fff;
    padding: 0 3px;
    width: 52px;
    display: none;
}

.post-edit-btn {
    
    width: 30px;
    height: 30px;

}




.wrapper-dashboard-actions {
    display: flex;
    gap: 0;
    padding: 0 0 13px;
    flex-direction: column;
    align-content: flex-end;
    align-items: flex-end;
}


img.logo-dashboard {
    height: 54px !important;
}

}





/* ============================================
   SWITCH TOGGLE
   ============================================ */
.post-status-switch {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fb2608;
    transition: .3s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background: #0bc107;
}

.switch input:checked + .slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Estado desabilitado enquanto carrega */
.switch input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}