/* ===== Media Uploader Component ===== */
.asp-media-uploader {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    position: relative;
}

.asp-media-uploader:hover {
    border-color: #0d6efd;
    background-color: #f8f9ff;
}

.asp-media-uploader.drag-over {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.asp-media-uploader.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.asp-media-uploader-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.asp-media-uploader-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.asp-media-uploader-hint {
    font-size: 0.75rem;
    color: #adb5bd;
}

.asp-media-uploader input[type="file"] {
    display: none;
}

/* Progress bar */
.asp-media-progress {
    margin-top: 12px;
    display: none;
}

.asp-media-progress.active {
    display: block;
}

.asp-media-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
}

.asp-media-progress-fill {
    height: 100%;
    background: #0d6efd;
    border-radius: 3px;
    transition: width 0.3s;
    width: 0%;
}

/* Preview */
.asp-media-preview {
    margin-top: 12px;
    display: none;
}

.asp-media-preview.active {
    display: block;
}

.asp-media-preview-img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.asp-media-preview-img.avatar-shape {
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

.asp-media-preview-img.cover-shape {
    width: 100%;
    max-width: 400px;
    max-height: 160px;
    border-radius: 8px;
}

/* Error */
.asp-media-error {
    margin-top: 8px;
    display: none;
    font-size: 0.85rem;
    color: #dc3545;
}

.asp-media-error.active {
    display: block;
}

/* Actions */
.asp-media-actions {
    margin-top: 12px;
    display: none;
    gap: 8px;
}

.asp-media-actions.active {
    display: flex;
    justify-content: center;
}

/* Current media display */
.asp-current-media {
    position: relative;
    display: inline-block;
}

.asp-current-media-img {
    border: 2px solid #dee2e6;
}

.asp-current-media-img.avatar-shape {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.asp-current-media-img.cover-shape {
    width: 100%;
    max-width: 400px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
}

.asp-current-media-overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
}

.asp-media-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.asp-media-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
} 
