/* ====================================================
   LMS Drag-and-Drop Upload Styles
   ==================================================== */

.lms-drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 20px;
    border: 2px dashed #c8d0da;
    border-radius: 6px;
    background: #f8f9fb;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    text-align: center;
    min-height: 100px;
}

.lms-drop-zone:hover,
.lms-drop-zone.lms-dz-hover {
    border-color: var(--primary-color, #094e23);
    background: #f0f7f2;
}

.lms-drop-zone.lms-dz-dragover {
    border-color: var(--primary-color, #094e23);
    background: #e8f5ee;
    box-shadow: 0 0 0 3px rgba(9, 78, 35, 0.12);
}

.lms-drop-zone .lms-dz-icon {
    font-size: 28px;
    color: var(--primary-color, #094e23);
    opacity: 0.7;
    pointer-events: none;
}

.lms-drop-zone .lms-dz-text {
    font-size: 13px;
    color: #555;
    pointer-events: none;
}

.lms-drop-zone .lms-dz-text strong {
    color: var(--primary-color, #094e23);
    font-weight: 600;
}

.lms-drop-zone .lms-dz-hint {
    font-size: 11px;
    color: #888;
    pointer-events: none;
}

/* Hidden real input inside drop zone */
.lms-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    display: block !important; /* override any display:none */
}

/* File list below the drop zone */
.lms-dz-file-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lms-dz-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
}

.lms-dz-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.lms-dz-file-info i {
    color: var(--primary-color, #094e23);
    flex-shrink: 0;
}

.lms-dz-file-name {
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lms-dz-file-size {
    color: #888;
    margin-left: 6px;
    flex-shrink: 0;
    font-size: 11px;
}

.lms-dz-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.15s;
    flex-shrink: 0;
    margin-left: 8px;
}

.lms-dz-remove-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* ============================================
   Forum-specific: extend existing .file-upload-section
   ============================================ */
.file-upload-section.lms-dz-forum-active {
    border: 2px dashed var(--primary-color, #094e23);
    border-radius: 6px;
    padding: 12px;
    background: #f0f7f2;
    transition: background 0.2s ease;
}

.file-upload-section.lms-dz-forum-dragover {
    background: #e8f5ee;
    box-shadow: 0 0 0 3px rgba(9, 78, 35, 0.12);
}
