﻿
/*.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 24px;
}*/
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 2000;
    padding: 24px;
    overflow: auto; /* allows scrolling on small screens */
}


/*.modal-dialog-custom {
    width: 100%;
    width: 100%;card 
    max-width: 1100px;
}*/
.modal-dialog-custom {
    position: absolute; /* key for dragging */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* initial center */
    width: min(1100px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
}


/*.modal-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
}*/
.modal-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

/*.modal-header-custom {
    padding: 22px 26px;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}*/
.modal-header-custom {
    padding: 16px 20px;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move; /* indicates draggable */
    user-select: none; /* prevent text selection while dragging */
    touch-action: none; /* better touch drag */
}


.modal-title-custom {
    font-size: 18px;
    font-weight: 600;
    color: #0b1b4d;
}


.btn-close-custom {
    border: none;
    background: transparent;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
}

/*.modal-body-custom {
    padding: 26px;
}
*/

.modal-body-custom {
    padding: 26px;
    overflow: auto; /* allows content scroll instead of modal overflowing */
}
.section-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: #111827;
}

.notes-box {
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    min-height: 90px;
    border: 1px solid #d1d5db;
}

.dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    padding: 38px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.dropzone-inner {
    text-align: center;
}

.upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #2563eb;
    font-size: 26px;
}

.dropzone-text {
    font-size: 20px;
    color: #111827;
}

.upload-link {
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
}

.hidden-input {
    display: none;
}

.selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.file-pill {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    color: #111827;
}

.file-size {
    color: #6b7280;
    margin-left: 6px;
}

.modal-footer-custom {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding-top: 30px;
}

.btn-cancel {
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    border-width: 2px;
}

.btn-upload {
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    background: #e5e7eb;
    border: none;
    color: #9ca3af;
}

    .btn-upload:enabled {
        background: #0b1b4d;
        color: #fff;
        cursor: pointer;
    }


/* Upload Area */
.upload-area {
    border: 2px dashed #d6dbe1;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}

    .upload-area.dragging {
        border-color: #0d6efd;
        background: #f5f9ff;
    }

.upload-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .upload-icon-box i {
        font-size: 18px;
        color: #0d6efd;
    }

.upload-text {
    font-size: 13px;
    color: #6c757d;
}

.upload-link {
    color: #0d6efd;
    cursor: pointer;
    font-weight: 500;
}

.hidden-input {
    display: none;
}

/* File List */
.file-list {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
}

.file-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 22px;
    color: #2563eb;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
}

.file-size {
    font-size: 11px;
    color: #6b7280;
}

.file-remove {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
}

    .file-remove:hover {
        color: #111827;
    }
