/**
 * Premium Modern Import Page Styles
 */

.uplisting-import-container {
    margin-top: 20px;
}

.import-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.import-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

/* Connection Form Card */
.import-section .form-table th {
    font-weight: 500;
    color: #475569;
    width: 180px;
}

.import-section input[type="password"] {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.import-section input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* Header actions layout */
.properties-list-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.properties-list-header-main h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.select-all-label:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.select-all-label input {
    margin: 0;
    cursor: pointer;
}

/* Progress bar styling */
.import-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #bfdbfe;
}

.progress-bar {
    flex: 1;
    height: 14px;
    background: #dbeafe;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    width: 0%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    min-width: 160px;
    text-align: right;
}

.import-progress.is-hidden,
#import-results-section.is-hidden {
    display: none;
}

/* Table layout */
.properties-list-table {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.properties-list-table th,
.properties-list-table td {
    padding: 14px 16px !important;
    vertical-align: middle !important;
}

.properties-list-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.properties-list-table tbody tr {
    transition: background-color 0.2s ease;
}

.properties-list-table .check-column {
    width: 40px;
    padding-left: 20px !important;
}

.properties-list-table .column-image {
    width: 120px;
}

.properties-list-table .column-status {
    width: 220px;
}

/* Row states colors */
.property-row.property-exists {
    background: #f8fafc !important;
}

.property-row.importing,
.property-row.updating {
    background: #fef8ec !important;
}

.property-row.success {
    background: #f0fdf4 !important;
}

.property-row.error {
    background: #fef2f2 !important;
}

/* Badges styling */
.property-existing-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 4px 8px;
    border-radius: 9999px;
    margin-top: 8px;
    font-weight: 500;
}

.property-existing-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Photo Thumbnail */
.property-thumbnail {
    position: relative;
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-thumbnail.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.property-thumbnail .image-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
}

.property-thumbnail .image-count .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Title Specs badges */
.property-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    display: block;
    margin-bottom: 6px;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.spec-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.property-id-small {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Location display */
.column-location {
    color: #475569;
    font-size: 13px;
}

.column-location .dashicons {
    color: #94a3b8;
    margin-right: 4px;
    vertical-align: text-bottom;
}

/* Action button styles */
.column-status button,
.column-status a.button {
    font-size: 12px !important;
    padding: 4px 10px !important;
    line-height: 20px !important;
    min-height: 28px !important;
    border-radius: 6px !important;
    margin-right: 6px;
    font-weight: 500;
}

.import-status {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

.import-status.importing,
.import-status.updating {
    color: #d97706;
}

.import-status.success {
    color: #16a34a;
}

.import-status.error {
    color: #dc2626;
}

/* Responsive grid layout */
@media (max-width: 782px) {
    .properties-list-header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .select-all-label {
        justify-content: center;
    }
}