/* 📄 File Input Custom Upload Box */
.custom-doc-input {
    position: relative;
    border: 2px dashed #4facfe;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.custom-doc-input:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: #00f2fe;
}

.custom-doc-input input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
}

.custom-doc-input::before {
    content: '📂 Click or Drag & Drop to upload PDF/DOC';
    color: #ccc;
    font-size: 14px;
}

/* 🎯 Actual File Preview */
.nx-doc-preview .file-preview-box {
    margin-top: 15px;
    padding: 12px 15px;
    background: #1e1e2f;
    border: 2px dashed #4facfe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 60px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background 0.3s ease, transform 0.3s ease;
}

.nx-doc-preview .file-preview-box:hover {
    transform: scale(1.02);
}

.file-icon {
    font-size: 30px;
    color: #4facfe;
    flex-shrink: 0;
}

.file-name {
    font-size: 14px;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}

/* ❌ Remove Button (Top Right) */
.nx-doc-preview .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    border: none;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.nx-doc-preview .remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* ⭐ Shimmer Loading */
.nx-doc-preview .file-preview-box.shimmer {
    height: 80px;
    background: linear-gradient(90deg, #1e1e2f 25%, #2c2c3f 50%, #1e1e2f 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 🖼️ No File Selected Fallback */
.nx-doc-preview .fallback-text {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    padding: 15px 0;
}
