/* ProCopy Plugin Styles - Version 2.6.0 */

.procopy-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Column settings */
.procopy-column-settings {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    border: 1px solid #ddd;
}

.procopy-checkbox-group {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.procopy-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.procopy-checkbox-label:hover {
    color: #0073aa;
}

.procopy-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.procopy-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.procopy-checkbox:disabled + span {
    color: #999;
    cursor: not-allowed;
}

.procopy-checkbox-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ccc;
}

/* Input sections */
.procopy-input {
    margin-bottom: 24px;
}

.procopy-input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
    font-size: 14px;
}

.procopy-textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.procopy-textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Website input section */
.procopy-website-input-section {
    margin-bottom: 16px;
}

.procopy-scan-button-section {
    margin-bottom: 16px;
}

/* Button styles */
.procopy-button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.procopy-button-group .button {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 36px;
	border:none
}

.button-primary {
    border:none
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Scan progress */
.procopy-scan-progress {
    margin: 16px 0;
    padding: 12px;
    background: #f0f8ff;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
    display: none;
}

.procopy-scan-status-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.procopy-scan-dots {
    font-weight: bold;
    color: #0073aa;
    min-width: 20px;
}

/* Website images */
.procopy-website-images {
    margin-top: 20px;
    display: none;
}

.procopy-images-list {
    border: 1px solid #ccc;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border-radius: 4px;
}

.procopy-images-list > div {
    margin: 8px 0;
    padding: 8px 8px 8px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.procopy-images-list > div:last-child {
    border-bottom: none;
}

.procopy-images-list input[type="checkbox"] {
    margin-right: 8px;
}

.procopy-images-list img {
    max-width: 50px;
    max-height: 30px;
    vertical-align: middle;
    margin-right: 12px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

/* Results table */
.procopy-results {
    margin-top: 24px;
    display: none;
}

/* Stock indicator fixed position */
.procopy-stock-indicator.fixed {
    position: fixed !important;
    top: 20px !important;
    z-index: 1000 !important;
    background: white !important;
    padding: 15px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    border-radius: 6px !important;
    margin-bottom: 0 !important;
    width: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 1400px !important;
    box-sizing: border-box !important;
}

.procopy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
}

.procopy-table th {
    background: #f1f1f1;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #23282d;
    font-size: 13px;
    border-bottom: 2px solid #ccd0d4;
}

.procopy-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.4;
}

.procopy-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.procopy-table tr:hover {
    background-color: #f0f6fc;
}

/* Table cell styles */
.procopy-source-header,
.procopy-source-cell {
    width: 15%;
    min-width: 150px;
}

.procopy-url-header,
.procopy-url-cell {
    width: 20%;
    min-width: 200px;
}

.procopy-preview-header,
.procopy-preview-cell {
    width: 12%;
    min-width: 120px;
}

.procopy-result-header,
.procopy-result-cell {
    width: 33%;
    min-width: 250px;
}

.procopy-alternative-header,
.procopy-alternative-cell {
    width: 20%;
    min-width: 180px;
}

/* URL and source cells with word breaking */
.procopy-table td:nth-child(1),  /* Source Page */
.procopy-table td:nth-child(2) { /* Checked URL */
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Image preview in table */
.procopy-table img {
    max-width: 100px;
    max-height: 56px;
    object-fit: cover;
    display: block;
    border: 1px solid #ddd;
    border-radius: 2px;
}

/* Result links */
.procopy-result a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
    display: inline-block;
    margin-bottom: 4px;
}

.procopy-result a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Status messages */
.procopy-status {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    border-left: 4px solid #0073aa;
}

/* Responsive design */
@media (max-width: 1200px) {
    .procopy-wrapper {
        padding: 16px;
    }
    
    .procopy-table {
        display: block;
        overflow-x: auto;
    }
    
    .procopy-checkbox-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .procopy-button-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .procopy-button-group .button {
        width: 100%;
        text-align: center;
    }
    
    .procopy-stock-indicator.fixed {
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
        width: calc(100% - 40px) !important;
    }
}

@media (max-width: 768px) {
    .procopy-wrapper {
        padding: 12px;
    }
    
    .procopy-table th,
    .procopy-table td {
        padding: 8px;
        font-size: 12px;
    }
    
    .procopy-textarea {
        font-size: 14px;
    }
    
    .procopy-stock-indicator.fixed {
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        padding: 10px !important;
    }
    
    .procopy-indicator-header {
        font-size: 12px !important;
    }
    
    .procopy-indicator-labels {
        font-size: 10px !important;
    }
}