.media-preview-container {
    min-height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.media-preview-container.drag-over {
    border-color: var(--primary-green);
    background-color: rgba(45, 80, 22, 0.1);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.upload-formats {
    font-size: 0.8em;
    color: #999;
    margin-top: 5px;
}

.media-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: white;
}

.preview-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.preview-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    font-size: 0.8em;
}

.preview-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.preview-remove {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.preview-remove:hover {
    background: #cc0000;
}

/* Estilo para el botón de envío cuando está cargando */
.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-submit i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensaje de error y éxito */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

.message.error {
    background: #ff4444;
    color: white;
}

.message.success {
    background: var(--primary-green);
    color: white;
}

@keyframes slideDown {
    0% { transform: translateY(-100%) translateX(-50%); }
    100% { transform: translateY(0) translateX(-50%); }
}