@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

html, body {
    overflow-x: hidden; /* Impede estouro horizontal na raiz */
    max-width: 100vw;
}

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
}

.wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #fafbfe;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;  /* Garante que nada interno transborde horizontalmente */
    width: 70px;
    z-index: 1000;
    transition: width 0.25s ease-in-out;
    background-color: #e39fac;
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 260px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
    transition: opacity 0.25s ease;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: 1.5rem 0.75rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

a.sidebar-link span {
    transition: opacity 0.25s ease;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.075);
    border-left: 3px solid #e27489;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    opacity: 0;
    pointer-events: none;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown + .sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 0.075rem 0.075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: transform 0.2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: transform 0.2s ease-out;
}

.btn-pps {
    border-color: #e39fac;
    color: #e39fac;
    font-weight: bold;
}

.btn-pps:hover {
    background-color: #e27489;
    color: white;
}

.pps-main{
    width: calc(100% - 40px);
    margin-left: 60px;
}

@media (max-width: 768px){
    .pps-main{
        width: calc(100% - 5px);
        margin-left: 5px;
    }

    #div_alugueis{
        margin-top: 50px;
    }

    #div_alugueis_titulo{
        margin-top: 50px;
    }

    #preview_image{
        max-width: 150px;
    }
}

#preview_image{
    width: 100%;
    max-width: 300px;
    height: auto;
}

.page-link{
    border-color: #e39fac;
    color: #e39fac;
    font-weight: bold;
}

.page-link:hover{
    color: white;
    background-color: #e27489;
}

.page-item.active .page-link {
    background-color: #bebfc2;
    border-color: #bebfc2;
}

.image_error{
    margin-top: 40px;
    max-width: 300px;
    width: 100%;
    height: auto;
}

.text_error{
    font-size: 38px;
}

.table-link{
    color: black;
}

.aluguel-card{
    background-color: #f2f2f2;
    border-radius: 10px;
    margin-top: 40px;
    width: 100%;
}

.aluguel-item{
    margin-left: 20px;
}

.aluguel-titulo{
    margin-top: 20px;
    font-size: 20px;
}

#div_alugueis{
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 65px;
}

.pps-success{
    background-color: #f8bbd0;
}

.pps-danger{
    background-color: #d81b60;
}

.pps-nao-devolvido{
    color: red;
    font-weight: bold;
}

.pps-devolvido{
    color: green;
    font-weight: bold;
}

.pps-ativo{
    font-weight: bold;
}


.card-vestido-pps{
    width: 100%;
    text-align: center;
    color: #e39fac;
    margin: 0 auto;
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    border: 2px solid #f7d9df;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
     padding-bottom: 1rem;
     transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-vestido-pps:hover {
  border-color: #e39fac;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card-vestido-pps-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-img-container{
    align-items: center;
    justify-content: center;
    height: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-vestido-pps-titulo{
    text-align: center;
    margin-top: 0.8rem;
    font-weight: bold;
}

.card-vestido-pps p{
    margin-top: 5px;
    margin-bottom: 5px;
}

#small_filtro{
    color: #e39fac;
}

.spinner-grow.custom-pink {
   background-color: transparent !important;
   border-color: #e39fac !important; /* Rosa mais vibrante */
}

.tr-clickable{
    cursor: pointer
}

.tr-clickable:hover td{
    background-color: #fee7ef;
}

.table-link:hover{
    color: #e39fac;
}

.card-vestido-pps.selected {
   border: 3px solid #e39fac;
   background-color: rgba(227, 159, 172);
   color: white;
}

.card-vestido-pps.selected .btn-pps {
    border-color: #e39fac;
    background-color: white;
    color: #e39fac;
    font-weight: bold;
}

.card-vestido-pps.selected .btn-pps:hover {
    background-color: #ffbf09;
    color: black;
}

.aluguel_vestido_imagem {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-costureira{
    border-radius: 12px;
    border: 2px solid #f7d9df;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-costureira:hover{
      border-color: #e39fac;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.despesa { color: red; }

.receita { color: green; }

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.lixeira_excluir svg:hover {
    fill: red;
    animation: shake 0.3s ease-in-out;
    cursor: pointer;
}




