/* Vehicle Prices Page Styles */

.page-content {
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.container h1 {
    margin-bottom: 24px;
}

/* Two-column split layout */
.split-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

/* Upload Card */
.upload-card {
    margin-bottom: 0;
}

/* History Card */
.history-card {
    min-height: 200px;
}

.upload-btn {
    width: 100%;
    margin-top: 16px;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    background: #0f0f23;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
}

.form-select:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.drop-zone-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.drop-zone p {
    margin: 4px 0;
    font-size: 14px;
}

/* File Preview */
.file-preview {
    position: relative;
    margin-top: 8px;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #0f0f23;
}

.preview-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.preview-file-icon {
    font-size: 32px;
}

.preview-file-name {
    font-size: 14px;
    color: #00d4ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview .btn-close-sm {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1;
}

.file-preview .btn-close-sm:hover {
    color: #ff4757;
    background: rgba(0, 0, 0, 0.8);
}

/* Success Message */
.success-message {
    background: #2ed573;
    color: #000;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Upload History Table */
.table-wrapper {
    overflow-x: auto;
}

.uploads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.uploads-table th {
    text-align: left;
    padding: 10px 12px;
    color: #888;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #222;
}

.uploads-table td {
    padding: 12px;
    border-bottom: 1px solid #1a1a2e;
    vertical-align: middle;
}

.upload-row {
    cursor: pointer;
    transition: background 0.15s;
}

.upload-row:hover {
    background: rgba(0, 212, 255, 0.05);
}

.cell-file {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #00d4ff;
}

.cell-date {
    white-space: nowrap;
    color: #aaa;
    font-size: 12px;
}

.cell-count {
    text-align: center;
    font-weight: 600;
    color: #e0e0e0;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-completed {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.status-failed {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

/* Showroom Badge */
.showroom-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.showroom-arena {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
}

.showroom-nexa {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

/* Responsive */
@media (max-width: 860px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .upload-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 600px) {
    .page-content {
        padding: 16px;
    }

    .drop-zone {
        padding: 24px 16px;
    }

    .uploads-table th:nth-child(3),
    .uploads-table td:nth-child(3) {
        display: none;
    }
}
