body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.imagem-item {
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent;
    height: 100%;
}

.imagem-item:hover {
    transform: translateY(-5px);
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.imagem-item.selecionada {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.cor-btn {
    height: 40px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    transition: transform 0.2s;
}

.cor-btn:hover {
    transform: scale(1.1);
}

.cor-btn.selecionada {
    border: 3px solid #000;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#area-pintura {
    min-height: 500px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

#canvas-pintura {
    display: none;
    cursor: crosshair;
    max-width: 100%;
    max-height: 500px;
}

#placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.btn {
    border-radius: 8px;
}

.btn i {
    margin-right: 5px;
}

.list-group-item {
    border: none;
    padding: 10px 15px;
}

.list-group-item:nth-child(odd) {
    background-color: rgba(0,0,0,.05);
}

.modal-content {
    border-radius: 10px;
}

/* Estilos do Carrossel */
.galeria-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.carousel-wrapper {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    position: relative;
}

.carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    gap: 10px; /* Espaço entre as imagens */
}

.carousel-item {
    min-width: 160px;
    flex: 0 0 auto;
    padding: 10px;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-item .card {
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.carousel-item .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-item .ratio {
    flex: 1;
}

.carousel-item .card-img-top {
    height: 100%;
    object-fit: cover;
}

.carousel-item .card-body {
    padding: 8px;
    text-align: center;
    background-color: white;
}

.carousel-item .card-body small {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Botões do Carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn i {
    color: #333;
    font-size: 0.9rem;
}

#btn-prev {
    left: 10px;
}

#btn-next {
    right: 10px;
}

/* Responsividade */
@media (max-width: 992px) {
    .carousel-item {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .galeria-container {
        height: 200px;
    }
    
    .carousel-item {
        min-width: 130px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
    }
    
    #area-pintura {
        min-height: 400px;
    }
    
    #placeholder {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .galeria-container {
        height: 180px;
    }
    
    .carousel-item {
        min-width: 110px;
    }
    
    .carousel-item .card-body small {
        font-size: 0.65rem;
    }
    
    .carousel-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}