/* --- Upload Page Specific Styles --- */
/* Note: This file relies on variables and base styles defined in styles.css */

.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.upload-button-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-upload {
    border: 2px solid var(--color-text-dark);
    color: var(--color-text-dark);
    background-color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn-upload:hover {
    background-color: var(--color-text-dark);
    color: white;
}

#file-input {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

#preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.remove-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}



.offline-warning {
    background-color: var(--color-error-bg);
    color: var(--color-error-text);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: center;
    border: 1px solid var(--color-error-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: none;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-msg {
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 0.85em;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.status-msg.success {
    display: block;
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.status-msg.error {
    display: block;
    background-color: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-border);
}

/* Page-specific responsive overrides */
@media (min-resolution: 2dppx) and (orientation: portrait), (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
    .white-box, .yellow-box {
        font-size: 1.7em;
    }
}