/*##################### SLT DEV #######################
###                                                 ###
###            AUTHOR : SomethingLikeThis           ###
###             CC: https://slt-dev.ovh             ###
###        DISCLAIMER : PRIVATE SERVER SCRIPT       ###
###                                                 ###
####################### SLT DEV #####################*/
body {
    margin: 0;
    background: linear-gradient(155deg, rgba(20, 20, 20, 1) 0%, rgba(17, 24, 28, 1) 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

img {
    max-width: 15vw;
    max-height: 15vh;
    margin-bottom: 1vh;
}
.uploadDiv {
    width: 50vw;
    height: 50vh;
    background: rgba(28, 37, 43, 0.5);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 100;
    color: white;
    margin-bottom: 10vh;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Met les particules derrière tout le reste */
    overflow: hidden;
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: white;
    background-color: rgba(34, 193, 195, 1);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-file-upload:hover {
    background-color: rgba(253, 187, 45, 1);
}

#file-upload {
    display: none; /* Masque l'input natif */
}

.upload-button {
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: white;
    background-color: rgba(34, 193, 195, 1);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-button:hover {
    background-color: rgba(253, 187, 45, 1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #23272f;
    color: #fff;
    padding: 30px 20px 20px 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 320px;
    max-width: 90vw;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
    /* Pour éviter le débordement sur petits écrans */
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #22c1c3;
}

.modal-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.modal-link-row {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.modal-link-input {
    width: 90%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: #181c22;
    color: #fff;
}

.modal-copy-btn {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    background: #22c1c3;
    color: #fff;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: background 0.2s;
}

.modal-copy-btn:hover {
    background: #1a9fa1;
}

.modal-copy-success {
    color: #22c1c3;
    display: none;
    font-size: 15px;
}