/* Bulk Upload Styles */

.bulk-upload-modal {
    max-width: 900px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.bulk-upload-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Upload Steps */
.upload-step {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.upload-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Upload Type Selector */
.upload-type-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.upload-type-option {
    width: 150px;
    height: 150px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.upload-type-option:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.2);
}

.upload-type-option.selected {
    border-color: #2196F3;
    background-color: #e3f2fd;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

.upload-type-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-type-label {
    font-weight: bold;
    font-size: 16px;
}

/* File Upload */
.file-upload-container {
    margin: 20px 0;
}

.file-upload-box {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-box:hover {
    border-color: #2196F3;
    background-color: #f0f8ff;
}

.file-upload-box.dragover {
    border-color: #2196F3;
    background-color: #e3f2fd;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text p {
    margin-bottom: 15px;
    color: #666;
}

.upload-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.upload-button:hover {
    background-color: #0b7dda;
}

.file-info {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.file-name {
    font-weight: bold;
    margin-right: 15px;
}

.file-size {
    color: #666;
    flex-grow: 1;
}

.template-download {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Column Mapping */
.sheets-selector {
    margin-bottom: 20px;
}

.mapping-container {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 400px;
}

.mapping-table {
    width: 100%;
    border-collapse: collapse;
}

.mapping-table th {
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.mapping-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.mapping-table select {
    width: 100%;
    padding: 8px;
}

/* Preview & Import */
.validation-summary {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.validation-heading {
    font-weight: bold;
    margin-bottom: 10px;
}

.validation-counts {
    display: flex;
    gap: 20px;
}

.valid-count {
    color: #4CAF50;
}

.warning-count {
    color: #FF9800;
}

.error-count {
    color: #F44336;
}

.preview-table-container {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 300px;
    margin-bottom: 20px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th {
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.preview-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.row-valid {
    background-color: #f1f8e9;
}

.row-warning {
    background-color: #fff8e1;
}

.row-error {
    background-color: #ffebee;
}

.cell-error {
    color: #F44336;
    position: relative;
}

.cell-error::after {
    content: "⚠️";
    margin-left: 5px;
    font-size: 12px;
}

.import-options {
    margin: 20px 0;
    display: flex;
    gap: 30px;
}

/* Navigation */
.upload-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-secondary {
    background-color: #9e9e9e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-secondary:hover {
    background-color: #757575;
}

/* Error Tooltips */
.error-tooltip {
    position: relative;
    cursor: help;
}

.error-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.error-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Loading Indicator */
.upload-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.upload-progress {
    margin-top: 20px;
    width: 70%;
    height: 10px;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background-color: #2196F3;
    width: 0%;
    transition: width 0.3s;
}

.upload-status {
    margin-top: 15px;
    color: #666;
    font-weight: bold;
}