/* =========================================================
   Upload Document Page
   ========================================================= */

#uploadDocumentPage {
    padding-bottom: 2rem;
}

/* Back link */
.upd-back-link {
    color: #64748b;
    font-size: 0.85rem;
    transition: color 0.15s;
}
.upd-back-link:hover {
    color: #2563eb;
}

/* Page heading */
.upd-page-title {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}
.upd-page-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Card */
.upd-card {
    border-radius: 16px;
    border: none;
}
.upd-card-body {
    padding: 2rem 2.25rem 2.5rem;
}
.upd-card-title {
    font-size: 1.15rem;
}

/* Divider under card title */
.upd-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 1rem 0 1.25rem;
    opacity: 1;
}

.upd-card-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Zone label */
.upd-zone-label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Drop zone */
.upd-dropzone {
    position: relative;
    border: 2px dashed #3b82f6;
    border-radius: 12px;
    min-height: 210px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.upd-dropzone:hover,
.upd-dropzone--over {
    background: #eff6ff;
    border-color: #2563eb;
}

.upd-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    width: 100%;
}

/* Upload icon */
.upd-upload-icon {
    font-size: 2rem;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.upd-drop-text {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.upd-browse-link {
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
}

.upd-hint {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Preview */
.upd-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upd-preview-img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    object-fit: contain;
    padding: 8px;
}
.upd-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: #64748b;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.upd-remove-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

/* Actions row */
.upd-actions {
    margin-top: 0.25rem;
}
.upd-cancel-btn {
    min-width: 100px;
    color: #334155;
}
.upd-submit-btn {
    min-width: 160px;
}

/* Disclaimer */
.upd-disclaimer {
    font-size: 0.78rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 575.98px) {
    .upd-card-body {
        padding: 1.25rem;
    }
    .upd-page-title {
        font-size: 1.4rem;
    }
    .upd-dropzone {
        min-height: 160px;
    }
}
