/* Styles for Tuta Admin Products Sync Page */

.tuta-products-container {
    margin-top: 20px;
}

.tuta-products-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    border-radius: 4px;
    max-width: none;
}

.tuta-products-stats {
    margin: 20px 0;
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    gap: 10px;
}

.stat-label {
    font-weight: 600;
}

.tuta-products-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.tuta-products-actions .spinner {
    float: none;
    visibility: hidden;
    margin: 0;
}

.tuta-products-actions .spinner.is-active {
    visibility: visible;
}

/* Page Selection Specific Styles */
.tuta-page-selection {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.tuta-pages-stats {
    margin: 15px 0;
    display: flex;
    gap: 40px;
}

.tuta-page-search {
    margin-bottom: 15px;
    position: relative;
}

.tuta-search-icon {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    color: #72777c;
}

.tuta-clear-search {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #72777c;
    cursor: pointer;
    display: none; /* Hidden by default, shown by JS */
}

#tuta-page-search-input {
    padding-left: 30px; /* Space for icon */
    padding-right: 30px; /* Space for clear button */
    width: 300px;
}

.tuta-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0; /* Added border */
    border-radius: 4px;
}

.tuta-page-item {
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    display: flex; /* Use flex for better alignment if needed */
    align-items: center; /* Align items vertically */
    gap: 8px; /* Gap between checkbox and label content */
}

.tuta-page-item input[type="checkbox"] {
    margin-right: 5px; /* Keep some space if not using flex gap */
}

.tuta-page-item label {
    display: flex; /* Changed from flex to allow wrapping if needed, or keep flex and manage overflow */
    align-items: center;
    gap: 8px;
    width: 100%; /* Ensure label takes full width */
}

.page-title {
    flex-grow: 1;
    white-space: nowrap; /* Prevent title from wrapping to multiple lines */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if title is too long */
}

.page-recommended {
    color: #ffb900; /* WordPress gold */
    font-size: 1.2em; /* Make icon a bit bigger */
}

.page-view {
    color: #0073aa; /* WordPress blue */
    text-decoration: none;
    margin-left: auto; /* Push view link to the right */
    white-space: nowrap;
}

.page-view .dashicons {
    vertical-align: middle;
}

.tuta-pages-actions {
    display: flex; /* Ensure items are in a row */
    align-items: center; /* Align items vertically */
    margin-top: 15px;
    gap: 10px; /* Add gap between button and spinner */
}

#tuta-pages-spinner {
    float: none; /* Already set */
    /* margin-left: 10px; (Using gap now) */
    visibility: hidden; /* Already set */
}

#tuta-pages-spinner.is-active {
    visibility: visible;
}

#tuta-pages-message {
    margin-top: 10px;
    font-weight: 500; /* Make message a bit bolder */
}

.tuta-no-pages-found {
    padding: 15px; /* Increased padding */
    background: #f9f9f9;
    text-align: center;
    font-style: italic;
    border: 1px dashed #ddd; /* Added dashed border */
    border-radius: 4px;
    margin-top: 10px;
}

.tuta-sync-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f6fc; /* Light blue background */
    border-left: 4px solid #2271b1; /* WordPress blue left border */
    color: #3c434a;
    font-size: 13px;
}

.tuta-sync-disclaimer p {
    margin: 0;
} 