/* /modules/requests/css/requests_upload.css */

.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 3px dashed var(--apple-card-border);
    border-radius: 0.8rem;
    background-color: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 180px;
    text-align: center;
}

[data-bs-theme="dark"] .drop-zone {
    background-color: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--apple-accent-color);
    background-color: rgba(108, 99, 255, 0.05);
}

.drop-zone.has-file {
    border-style: solid;
    border-color: var(--apple-accent-color);
    background-color: rgba(108, 99, 255, 0.05);
}

/* * ===============================================================
 * == THE FIX: Switched from ID (#file-name-display) to a class
 * ===============================================================
*/
.drop-zone .file-name-display {
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-all;
    padding: 0 1rem;
    margin-top: 0.5rem; /* Added for better spacing */
    color: var(--apple-secondary-text);
}

/* * ===============================================================
 * == THE FIX: Added a class for the icon
 * ===============================================================
*/
.drop-zone .drop-zone-icon {
    font-size: 3rem;
    color: var(--apple-accent-color);
    transition: all 0.2s ease;
}

.drop-zone:hover .drop-zone-icon {
    transform: scale(1.1);
}

/* * ===============================================================
 * == THE FIX: Switched from targeting the <i> tag to the class
 * ===============================================================
*/
.drop-zone.has-file .drop-zone-icon {
    display: none;
}


/* === STYLES FOR UPLOAD PROGRESS BAR === */
/* ... (rest of the file is unchanged) ... */
.upload-progress-container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0.4rem;
    height: 14px;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
}

[data-bs-theme="dark"] .upload-progress-container {
    background-color: rgba(255, 255, 255, 0.1);
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--apple-accent-color);
    border-radius: 0.4rem;
    transition: width 0.3s ease;
}

.upload-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

[data-bs-theme="dark"] .upload-progress-text {
    color: #000;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

/* === TABLE STYLES === */
/* ... (rest of the file is unchanged) ... */
.review-table-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--apple-card-border);
    border-radius: 0.6rem;
}

.table-review {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px; /* Force horizontal scroll if needed */
}

.table-review th,
.table-review td {
    font-size: 0.85rem;
    text-align: left;
    vertical-align: middle;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--apple-card-border);
    white-space: nowrap;
}

.table-review td {
    font-size: 0.9rem;
    color: var(--apple-secondary-text);
}

.table-review tbody tr:last-child td {
    border-bottom: 0;
}

/* Sticky header */
.table-review th {
    position: sticky;
    top: 0;
    background-color: var(--apple-card-bg); /* Use the glass bg */
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1); 
    color: var(--apple-text-color);
    font-weight: 600;
}

[data-bs-theme="dark"] .table-review th {
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.3);
}

/* Zebra-striping for readability */
.table-review tbody tr:nth-of-type(odd) {
    background-color: var(--apple-hover-bg);
}

.table-review tbody tr:hover {
    background-color: var(--sidebar-link-hover-bg);
}

/* Style for highlighting changes in the correction table */
.table-review td.highlight-change {
    background-color: rgba(255, 204, 0, 0.4) !important; /* Yellow highlight */
    font-weight: 600;
    color: var(--apple-text-color);
}