/* Upload Page Layout */

/* Main Upload Content Section */
.upload-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #F4F4F4;
    color: #1A202C;
    overflow-y: auto; /* Allows scrolling within the content if necessary */
}
.upload-document-container {
    height: 75vh;
    overflow-y: auto;
}
.upload-content h2 {
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333333;
}

.upload-content .grid-container-title {
    margin-top: 0;
}

.upload-content p {
    font-size: 16px;
    color: #4A5568;
    margin-bottom: 24px;
}

.upload-content .all-content {
    padding-top: 30px;
}

/* Upload Box Style */
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 2px dashed #DFE4EA;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    color: #6B7280;
    transition: background-color 0.2s;
    cursor: grab;
}

.upload-box.drag-over {
border-color: #007bff; /* Highlight border when dragging files */
background-color: #e6f2ff; /* Optional background color for feedback */
}
  
.upload-box:hover {
    background-color: #F7FAFC;
}
.upload-box button:hover {
    background-color: #1D4ED8;
}
.upload-text {
    color: #1F3A93;
    font-weight: 600;
}
.upload-description {
    font-size: 12px;
}
.form-label {
    font-size: 16px;
    font-weight: 500;
    color: #111928;
    margin: 0 !important;
}

/* File Upload Progress */
.file-upload-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background: #EDF2F7;
    padding: 10px;
    border-radius: 8px;
    color: #4A5568;
}

.file-upload-progress p {
    margin: 0;
    font-size: 14px;
    color: #333333;
}

.file-upload-progress .progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #E2E8F0;
    border-radius: 5px;
    overflow: hidden;
}

.file-upload-progress .progress {
    height: 100%;
    background-color: #2563EB;
    border-radius: 5px;
}

.upload-status {
    font-size: 14px;
    color: #48BB78;
}

/* Upload History Table Styling */
.upload-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #333333;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.upload-history-table th, .upload-history-table td {
    padding: 15px;
    text-align: left;
    font-size: 14px;
}

.upload-history-table th {
    background-color: #f0f4ff;
    color: #1A202C;
    font-weight: 600;
}

.upload-history-table tr:nth-child(even) {
    background-color: #f7fafc;
}

.upload-history-table tr:hover {
    background-color: #edf2f7;
}

.upload-form {
    display: grid;
    grid-template-rows: 1fr 72px;
}
.upload-form .list-uploads {
    margin: 20px 0;
}

.upload-form #file-name {
    margin: 0 !important;
}

.upload-form input[type="text"] {
    border-radius: 8px;
}

.upload-form .question-field, .upload-form .tags-field {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.upload-form .tag-field {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.container-upload {
    gap: 24px;
    padding: 24px;
}
.form-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.submit-form-container {
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #E4E7EC;
    gap: 12px;
}
.upload-form .add-more {
    width: 35px;
    height: 35px;
    margin-left: 10px;
    border-radius: 100%;
}

.form-title {
    font-size: 21px;
    font-weight: 500;
    margin: 0
}

.description-form {
    min-height: 80px;
    text-align: top;
    resize: none;
}

.tags, .questions {
    width: 100%;
}
.added-tags, .added-questions {
    display: flex;
    gap: 8px;
    width: fit-content;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.tag, .question {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 10px;
    height: 24px;
    border: none;
    border-radius: 4px;
    flex-shrink: 0; 
    width: fit-content;
    word-wrap: break-word;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    height: max-content;
}
.tag::after, .question::after {
    content: '';
    background-image: url('/static/images/complete-account-setup/close-modal.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0; 
    width: 12px;
    height: 12px;
}
.add-tag, .add-question {
    height: 24px !important;
    border-radius: 4px !important;
    flex-shrink: 0;
    padding: 4px;
}
.add-tag {
    width: 180px !important;
}
.add-question {
    width: 260px !important;
}

.tag {
    background-color: #E6F2FF;
    color: #007BFF;
}
.tag:hover {
    background-color: #99b8da;
    color: #0058b6;
}
.question {
    background-color: #F3F5F9;
    color: #333333;
}
.question:hover {
    background-color: #acafb6;
    color: #1a1919;
}

.submit-file {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 28px;
    border-radius: 8px; 
    color: #333333;
    border: 1px solid #DFE4EA;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
}

.submit-file span {
    pointer-events: none; 
}

.submit-file:hover {
    background-color: #e9ecef;
    border-color: #ced4da; 
}

.submit-file:active {
    background-color: #dee2e6;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.1); 
}

.submit-file.file-selected {
    background-color: #d1e7dd; 
    color: #155724; 
    border-color: #badbcc; 
}

.submit-file input[type="file"] {
    display: none;
}

.added-questions, .added-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

