html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0;
}

p {
    text-align: center;
    margin-top: 5px;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed #007bff;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 6px;
    background-color: #e7f1ff;
    margin: 20px auto;
    max-width: 300px;
}

.custom-file-upload:hover {
    background-color: #d0e7ff;
}

#file-upload {
    display: none;
}

.upload-icon {
    width: 40px;
}

#clear-selection {
    display: block;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    margin: 10px auto;
    max-width: 180px;
}

#clear-selection:hover {
    background-color: #ff6666;
}

#image-container {
    width: 100%;
    margin-top: 20px;
    position: relative;
}

#image-container>img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.bounding-box {
    position: absolute;
    box-sizing: border-box;
    border-width: 2px;
    border-style: solid;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.bounding-box:hover {
    border-color: #ff0000;
}

.bounding-box-label {
    color: white;
    position: absolute;
    font-size: 12px;
    margin-top: -16px;
    margin-left: -2px;
    padding: 1px 3px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.75);
    transition: background-color 0.3s;
}

#status {
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
}

.loader {
    border: 6px solid #e0e0e0;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Media Queries para diferentes tamaños de pantalla */
@media (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 15px;
    }

    .custom-file-upload {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 2px dashed #007bff;
        padding: 12px 24px;
        cursor: pointer;
        border-radius: 6px;
        background-color: #e7f1ff;
        margin: 20px auto;
        max-width: 300px;
    }

    .upload-icon {
        margin-bottom: 10px;
    }

    #clear-selection {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .custom-file-upload {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 2px dashed #007bff;
        padding: 12px 24px;
        cursor: pointer;
        border-radius: 6px;
        background-color: #e7f1ff;
        margin: 20px auto;
        max-width: 300px;
    }

    .upload-icon {
        width: 30px;
    }

    p {
        margin-top: 10px;
    }
}