/* Styles specific to the Logo Scale Checker Tool */

/* Upload Section */
.upload-section {
    text-align: center;
    margin-bottom: 2rem;
}

#drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#drop-zone.drag-over {
    border-color: var(--accent-color);
    background-color: rgba(0, 123, 255, 0.05);
}
body.dark-mode #drop-zone.drag-over {
    background-color: rgba(102, 191, 255, 0.1);
}

#drop-zone p {
    color: var(--text-color);
    opacity: 0.8;
    pointer-events: none;
}

#file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    /* Assuming light text on accent button for both themes initially */
    color: var(--bg-color-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}
body.dark-mode .file-label {
    color: var(--bg-color-dark); /* Adjust if needed based on dark accent */
}

.file-label:hover {
    opacity: 0.9;
}

#upload-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #dc3545; /* Error color - Consider using --error-text variable */
    min-height: 1.4em;
}
body.dark-mode #upload-status {
     color: #f8d7da; /* Error color dark - Consider using --error-text variable */
}

/* Resized Preview Section */
#resized-preview-container {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

#resized-preview-container.hidden {
    display: none;
}

.resized-image-wrapper {
    margin-bottom: 1.5rem;
    text-align: center;
}

.resized-image-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--label-text);
    font-weight: 500;
}

/* Styles for the preview images themselves */
#resized-preview-container img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: auto; /* Maintain aspect ratio */
    background-color: var(--preview-bg); /* Background for transparency */
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

/* Specific max-width for the largest image, others controlled by JS */
#resized-img-1 {
    max-width: 450px; /* Or keep 100%? Check original intent */
    width: 100%; /* Make it responsive within its container */
}
/* Note: The specific widths for img-2 to img-5 are set via JS */


/* Responsive Adjustments specific to this tool */
@media (max-width: 600px) {
    #drop-zone {
        padding: 2rem 1rem;
    }
     .resized-image-wrapper label {
        font-size: 0.8rem;
    }
     #resized-img-1 {
        max-width: 100%; /* Ensure full width on small screens */
    }
}