/* NIMM FILM - Foto-Upload Frontend Styles */

.nfpu-upload-wrapper {
    margin: 1.5em 0;
    padding: 0;
}

.nfpu-upload-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    font-size: 1em;
}

.nfpu-upload-label .required {
    color: #e2401c;
    text-decoration: none;
    border: none;
}

/* Dropzone */
.nfpu-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2em 1.5em;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: #fafafa;
}

.nfpu-dropzone:hover,
.nfpu-dropzone.nfpu-dragover {
    border-color: #333;
    background-color: #f0f0f0;
}

.nfpu-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.nfpu-dropzone-icon {
    font-size: 2em;
    width: auto;
    height: auto;
    color: #888;
}

.nfpu-dropzone-text {
    font-size: 1em;
    color: #555;
}

.nfpu-dropzone-hint {
    font-size: 0.85em;
    color: #999;
}

/* Fortschrittsanzeige */
.nfpu-upload-progress {
    margin-top: 0.75em;
}

.nfpu-progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.nfpu-progress-bar-fill {
    height: 100%;
    width: 0;
    background: #333;
    border-radius: 4px;
    transition: width 0.2s;
}

.nfpu-progress-text {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 0.3em;
    text-align: center;
}

/* Ergebnis nach Upload */
.nfpu-upload-result {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1em;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 0.75em;
}

.nfpu-file-icon {
    color: #555;
    font-size: 1.2em;
    width: auto;
    height: auto;
}

.nfpu-file-name {
    font-weight: 500;
    flex: 1;
    word-break: break-all;
}

.nfpu-file-size {
    font-size: 0.85em;
    color: #888;
    white-space: nowrap;
}

.nfpu-remove-file {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.nfpu-remove-file:hover {
    color: #e2401c;
}

.nfpu-remove-file .dashicons {
    font-size: 1.3em;
    width: auto;
    height: auto;
}

/* Fehlermeldung */
.nfpu-upload-error {
    margin-top: 0.5em;
    padding: 0.5em 0.75em;
    background: #fef0f0;
    border: 1px solid #e2401c;
    border-radius: 4px;
    color: #c02b0e;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 480px) {
    .nfpu-dropzone {
        padding: 1.5em 1em;
    }

    .nfpu-upload-result {
        flex-wrap: wrap;
    }

    .nfpu-file-size {
        width: 100%;
        margin-left: 1.7em;
    }
}
