/* css/local-image-grid-plugin.css */

/* Style général */
.local-image-grid-container {
    text-align: center;
    margin: 20px 0;
}

.primary-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px;
}

.primary-button:hover {
    background-color: #005f8d;
}

/* Modal de sélection du lot */
.select-lot-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.select-lot-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 400px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

/* Modals pour les lots d'aimants */
.image-grid-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.image-grid-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-square {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.grid-square img {
    width: 100%;
    height: auto;
}

.modify-button, .delete-button {
    position: absolute;
    bottom: 5px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.modify-button {
    left: 5px;
}

.delete-button {
    right: 5px;
}

.grid-square input[type="file"] {
    display: flex;
}

/* Modal de recadrage */
.crop-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.crop-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.cropper-image {
    width: 100%;
    height: auto;
}

.crop-button {
    margin-top: 10px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.crop-button:hover {
    background-color: #005f8d;
}
