/**
 * HH Upload Manager Styles
 * Styles for enhanced file upload system
 */

/* Drag and Drop Zone */
.hh-dropzone {
    border: 2px dashed var(--bs-border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--bs-secondary-bg);
}

.hh-dropzone:hover {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}

.hh-dropzone.drag-over {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
    border-style: solid;
    transform: scale(1.02);
}

.hh-dropzone-icon {
    font-size: 48px;
    color: var(--bs-secondary);
    margin-bottom: 16px;
}

.hh-dropzone.drag-over .hh-dropzone-icon {
    color: var(--bs-primary);
}

.hh-dropzone-text {
    color: var(--bs-body-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.hh-dropzone-hint {
    color: var(--bs-secondary-color);
    font-size: 14px;
}

/* File Preview Grid */
.hh-file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.hh-file-preview-item {
    position: relative;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.hh-file-preview-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.hh-file-preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.hh-file-preview-icon {
    font-size: 48px;
    color: var(--bs-secondary);
    margin-bottom: 8px;
}

.hh-file-preview-name {
    font-size: 12px;
    color: var(--bs-body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hh-file-preview-size {
    font-size: 11px;
    color: var(--bs-secondary-color);
}

.hh-file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bs-danger);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hh-file-preview-item:hover .hh-file-preview-remove {
    opacity: 1;
}

.hh-file-preview-remove:hover {
    background-color: var(--bs-danger-border-subtle);
}

/* Upload Queue Panel */
#hh-upload-queue .card {
    border: none;
}

#hh-upload-queue .card-header {
    cursor: move;
}

#queue-items:empty::after {
    content: "No files in queue";
    display: block;
    text-align: center;
    padding: 20px;
    color: var(--bs-secondary-color);
}

/* Paste Upload Indicator */
.hh-paste-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bs-primary);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 18px;
    z-index: 10000;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hh-paste-indicator.show {
    display: block;
    animation: fadeInOut 1.5s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

