/* ==========================================================================
   Hajipur Upload Document Dialog Styles (hud-*)
   ========================================================================== */

.hud-card {
    background-color: #FFFFFF;
    border-radius: 14px;
    width: 520px;
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.85);
    overflow: hidden;
    position: relative;
}

.hud-card::before {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, rgba(4, 5, 171, 0.85) 0%, rgba(4, 5, 171, 0.25) 30%, transparent 80%);
    flex-shrink: 0;
}

.hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #F1F5F9;
    background-color: #FAFCFF;
}

.hud-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.hud-close-btn {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 18px;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-close-btn:hover {
    color: var(--primary-color, #0405AB);
    background-color: var(--primary-bg, #EEF0FF);
    border-color: var(--primary-color, #0405AB);
    transform: rotate(90deg) scale(1.08);
}

.hud-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hud-upload-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}

.hud-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #F1F5F9;
}

.hud-upload-title {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
}

.hud-upload-count {
    font-size: 12px;
    color: #94A3B8;
}

.hud-dropzone {
    margin: 12px;
    padding: 28px 16px;
    background-color: #FAFAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.15s ease;
}

.hud-dropzone:hover {
    border-color: #0405AB;
    background-color: #F8FAFC;
}

.hud-upload-icon {
    width: 28px;
    height: 28px;
    color: #64748B;
}

.hud-dropzone-primary-text {
    font-size: 13px;
    color: #64748B;
}

.hud-link-text {
    color: #0405AB;
    font-weight: 700;
}

.hud-dropzone-sub-text {
    font-size: 11.5px;
    color: #94A3B8;
}

.hud-file-list {
    margin: 0 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.hud-file-item:hover {
    border-color: #CBD5E1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hud-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.hud-file-icon {
    width: 22px;
    height: 22px;
    color: #0405AB;
    flex-shrink: 0;
}

.hud-file-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hud-file-name {
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.hud-file-size {
    font-size: 11.5px;
    color: #64748B;
}

.hud-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-file-badge {
    font-size: 11px;
    font-weight: 600;
    color: #16A34A;
    background: #DCFCE7;
    padding: 2px 8px;
    border-radius: 12px;
}

.hud-file-remove {
    background: none;
    border: none;
    font-size: 18px;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.hud-file-remove:hover {
    color: #EF4444;
    background-color: #FEE2E2;
}

.hud-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #F1F5F9;
    background-color: #FFFFFF;
}

.hud-btn-cancel {
    height: 38px;
    padding: 0 20px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    color: #1E293B;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.hud-btn-cancel:hover {
    background-color: #F8FAFC;
}

.hud-btn-submit {
    height: 38px;
    padding: 0 22px;
    background-color: #0405AB;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.hud-btn-submit:hover {
    opacity: 0.9;
}