﻿body {
    font-family: Calibri;
    margin: 0;
    -webkit-user-select: none;
}

.dvContainer {
    color: black;
    height: 100% !important;
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #0070c0;
    position: absolute;
    overflow: auto;
}

/* ================= HEADER FIX ================= */

.dvHeaderApp {
    background-color: #ffffff;
    height: 70px;
    display: flex;
    align-items: center; /* vertical center */
    justify-content: space-between;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spnHeaderTitle {
    font-family: Calibri;
    font-size: 30px;
    font-weight: bold;
    color: #30a8ae;
    margin: 0;
}

.spnHeaderInfo {
    font-family: Calibri;
    font-size: 16px;
    color: black;
    margin: 0;
}

.bi-info-circle-fill {
    font-size: 21px;
    cursor: pointer;
}

/* Pink Loading preserved */
#LoadingRed {
    color: #DDA0DD;
    font-weight: bolder;
    font-size: 24px;
    display: none;
}

/* ================= IMPORT BUTTON ABOVE GRID ================= */

.action-bar {
    width: 98%;
    margin-left: 2%;
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: left;
}

.actionButtons {
    color: white;
    border-radius: 4px;
    border: none;
    font-weight: normal;
    width: 105px;
    height: 28px;
    cursor: pointer;
}

#btdNew {
    background-color: #5195d3;
}

    #btdNew:hover {
        background-color: #407ec9;
    }

/* ================= GRID (UNCHANGED FROM YOUR ORIGINAL) ================= */

.dvEmptyspace {
    height: 20px;
}

.tblGrid {
    cursor: pointer;
    width: 98%;
    border-width: 0.5px;
    border-color: #D9D9D9;
    table-layout: fixed;
    margin-left: 2%;
}

#trheader {
    cursor: pointer;
    border-collapse: collapse;
    height: 25px;
}

.tdHeader {
    height: 15px;
    font-family: Calibri;
    font-size: 16px;
    text-align: center;
    user-select: none;
    background-color: white;
    color: #000000;
    font-weight: bold;
    padding-top: 6px;
}

.searchBox {
    width: 99%;
    border-color: #ffe699;
    padding-left: 8px;
    background-color: #fff4d4;
    border: .5px solid #ffe699;
    border-radius: 5px;
    height: 20px;
}

.tdData {
    height: 24px;
    font-family: Calibri;
    font-size: 14px;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border-bottom: 0.7px solid #979797;
}

.tdDataCarrier {
    height: 24px;
    font-family: Calibri;
    font-size: 14px;
    text-align: left;
    padding-left: 10px;
    border-bottom: 0.7px solid #979797;
}

.selectedColor {
    background-color: #fce4d6;
}

span[class^="dot-"] {
    opacity: 0;
}

.dot-one {
    animation: dot-one 2s infinite linear
}

.dot-two {
    animation: dot-two 2s infinite linear
}

.dot-three {
    animation: dot-three 2s infinite linear
}

@keyframes dot-one {
    0%,15% {
        opacity: 0
    }

    25%,100% {
        opacity: 1
    }
}

@keyframes dot-two {
    0%,25% {
        opacity: 0
    }

    50%,100% {
        opacity: 1
    }
}

@keyframes dot-three {
    0%,50% {
        opacity: 0
    }

    75%,100% {
        opacity: 1
    }
}
.modern-upload-modal {
    border-radius: 6px;
}

.required-star {
    color: red;
    font-weight: bold;
    margin-left: 3px;
}

.modern-upload-modal label {

    font-weight: 600;
}

/* LEFT DROP SECTION */
.upload-drop-section {
    flex: 1;
}

.drop-box {
    border: 2px dashed #6c63ff;
    border-radius: 15px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fafaff;
    transition: 0.3s ease;
}


.drop-inner h5 {
    font-weight: 600;
    margin-top: 15px;
}

.upload-icon {
    font-size: 50px;
    color: #6c63ff;
}

/* RIGHT FORM */
.upload-form-section {
    flex: 1;
}

.required-star {
    color: red;
    font-weight: bold;
}

.field-error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 4px;
}
.upload-layout-horizontal {
    display: flex;
    gap: 40px;
    padding: 25px;
}

/* LEFT */
.upload-left {
    flex: 1;
}

/* RIGHT */
.upload-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* DROP BOX */
/* ================= DROP BOX ================= */

.drop-box {
    position: relative;
    border: 2px dashed #6c63ff;
    border-radius: 15px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafaff;
    transition: all 0.2s ease;
    overflow: hidden;
}
/* ================= GLOBAL DRAG OVERLAY ================= */

#globalDragOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

    /* Active state */
    #globalDragOverlay.active {
        opacity: 1;
        pointer-events: all;
    }
 z-index: 10;
}

.upload-icon {
    font-size: 48px;
    color: #6c63ff;
}

.disabled-section {
    opacity: 0.4;
    pointer-events: none;
}

/* FORM ROW */
.form-row-custom {
    display: flex;
    align-items: center;
}

.form-label {
    width: 140px;
    font-weight: 600;
}

.form-input {
    flex: 1;
}

/* REQUIRED STAR */
.required-star {
    color: red;
}

/* ERROR */
.field-error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 4px;
}

/* NOTE */
.muted-note {
    font-size: 13px;
    color: #6c757d;
    margin-left: 140px;
}
/* ================= FILE ATTACHMENT CARD ================= */

.file-card {
    margin-top: 15px;
    padding: 10px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-icon {
    font-size: 20px;
    color: #6c63ff;
}

.file-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.file-card-right {
    cursor: pointer;
}

.remove-icon {
    font-size: 18px;
    color: #dc3545;
    transition: 0.2s ease;
}

    .remove-icon:hover {
        color: #a71d2a;
    }
/* ================= FILE CARD ================= */

.file-card {
    margin-top: 15px;
    padding: 10px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    gap : 5px;
    justify-content: space-between;
    align-items: center;
}

.file-card-left {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.file-icon {
    font-size: 20px;
    color: #6c63ff;
}

.file-name {
    font-weight: 600;
    font-size: 14px;
}

.file-type-badge {
    background-color: #6c63ff;
    color: white;
    font-size: 11px;
}

.file-size-badge {
    background-color: #17a2b8;
    color: white;
    font-size: 11px;
}

.remove-icon {
    font-size: 18px;
    color: #dc3545;
    cursor: pointer;
    transition: 0.2s ease;
}

    .remove-icon:hover {
        color: #a71d2a;
    }

.upload-progress-container {
    margin-top: 10px;
}

.upload-progress-text {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.progress {
    height: 8px;
    border-radius: 5px;
}

.progress-bar {
    background-color: #28a745;
    transition: width 0.4s ease;
}

/* ================= DRAG ACTIVE STATE ================= */

.drag-active {
    background-color: rgba(108, 99, 255, 0.08);
    border-color: #4b42d6;
    position: relative;
}

/* ================= FILE BADGES ================= */

.file-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
}

/* PDF TYPE */

.pdf-type {
    background: linear-gradient(45deg, #ff4d4d, #ff1a1a);
    color: white;
}

/* DOC TYPE */

.doc-type {
    background: linear-gradient(45deg, #1e90ff, #0056b3);
    color: white;
}

/* FILE SIZE */

.file-size {
    background-color: #ff5700f5;
    color: #ffffff;
}

.pdf-viewer-body {
    height: 55vh;
    overflow: auto;
    text-align: center;
}

#pdfCanvas {
    max-width: 100%;
    height: auto;
}

.page-info {
    font-weight: 600;
    margin: 0 15px;
}

.pdf-viewer-content{
    margin-top : -21%;
}