.list-marketplace {
    display: flex;
    border: 1px solid transparent;
    justify-content: center;
    align-items: center;

    background-color: #f9f9f9;
    position: relative;
}

.list-marketplace::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #26e5ff, #019fe4);
    z-index: -1;
}

.list-marketplace .marketplace-function-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.list-marketplace .marketplace-function-details::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #26e5ff, #019fe4);
    border-radius: 15px;
    z-index: -1;
}

.list-marketplace .function-title {
    font-size: 29px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #26e5ff;
}

.list-marketplace .function-category,
.list-marketplace .function-type-module,
.list-marketplace .function-price {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
}

.list-marketplace .function-section {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.list-marketplace .function-section h3 {
    font-size: 23px;
    color: #019fe4;
    margin-bottom: 8px;
}

.list-marketplace .function-section-content {
    font-size: 14px;
    color: #444;
}

.list-marketplace .function-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.list-marketplace .btn {
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.list-marketplace .btn-primary {
    background: #019fe4;
    color: white;
    border: none;
}

.list-marketplace .btn-primary:hover {
    background: #26e5ff;
}

.list-marketplace .btn-secondary {
    background: #ddd;
    color: black;
    border: none;
}

.list-marketplace .btn-secondary:hover {
    background: #bbb;
}

.marketplace-function-container {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.marketplace-function-details {
    flex: 2;
}

.marketplace-function-images {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    align-self: flex-start;
}

.marketplace-function-images::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #26e5ff, #019fe4);
    border-radius: 15px;
    z-index: -1;
}

.function-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.function-image-tile {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.function-image-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.function-image-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* Style dla prostego lightboxa */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#lightbox-content {
    position: relative;
    display: inline-block;
    max-width: 90%;
    max-height: 90%;
    margin: 0 auto;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

#lightbox-close {
    position: absolute !important;
    top: -40px !important;
    right: -40px !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}

#lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

/* Responsywność */
@media (max-width: 768px) {
    #lightbox-close {
        top: 10px !important;
        right: 10px !important;
    }
}
.btn-outline-danger{
    color: #ca3120;

}

.function-checkbox-container {
    margin-right: 8px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.function-checkbox {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    cursor: pointer;
    border: 2px solid #666 !important;
    border-radius: 3px !important;
    background-color: white !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.function-checkbox:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.function-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}