/**
 * Inline styles for the admin settings page
 */
/* Main Container Styles */
.pictaffil-settings-container {
    margin-top: 20px;
    max-width: 1200px;
}

/* Tabs Navigation */
.pictaffil-settings-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.pictaffil-tab-nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pictaffil-tab-nav li {
    margin-bottom: -1px;
}

.pictaffil-tab-nav li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #646970;
    border: 1px solid transparent;
    border-bottom: none;
    font-weight: 500;
}

.pictaffil-tab-nav li a:hover {
    color: #2271b1;
    background: #f0f0f1;
}

.pictaffil-tab-nav li.active a {
    background: #fff;
    color: #2271b1;
    border-color: #ccc;
    border-bottom-color: #fff;
}

/* Tab Content */
.pictaffil-tab-content {
    display: none;
}

.pictaffil-tab-content.active {
    display: block;
}

/* Card Layout */
.pictaffil-settings-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pictaffil-settings-card h2 {
    margin: 0;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

.pictaffil-card-content {
    padding: 20px;
}

.pictaffil-description {
    margin-top: 0;
    margin-bottom: 15px;
    color: #646970;
}

/* Field Layout */
.pictaffil-field-row {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.pictaffil-field-row:last-child {
    margin-bottom: 0;
}

.pictaffil-field-row > label {
    flex: 0 0 200px;
    font-weight: 500;
    padding-top: 5px;
}

.pictaffil-field-input {
    flex: 1;
    min-width: 0;
}

.pictaffil-help-text {
    margin-top: 5px;
    color: #646970;
    font-size: 13px;
    font-style: italic;
}

/* Toggle Switch */
.pictaffil-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.pictaffil-toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    margin-right: 10px;
    transition: all 0.3s;
}

.pictaffil-toggle-switch:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s;
}

.pictaffil-toggle input[type="checkbox"] {
    display: none;
}

.pictaffil-toggle input[type="checkbox"]:checked + .pictaffil-toggle-switch {
    background-color: #2271b1;
}

.pictaffil-toggle input[type="checkbox"]:checked + .pictaffil-toggle-switch:before {
    transform: translateX(16px);
}

/* Radio Tiles */
.pictaffil-radio-tiles {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pictaffil-radio-tile {
    flex: 1;
    min-width: 180px;
}

.pictaffil-radio-tile input[type="radio"] {
    display: none;
}

.pictaffil-radio-tile label {
    display: block;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pictaffil-radio-tile label:hover {
    background: #f0f0f1;
    border-color: #c0c0c0;
}

.pictaffil-radio-tile input[type="radio"]:checked + label {
    background: #f0f7fb;
    border-color: #2271b1;
}

.pictaffil-radio-icon {
    text-align: center;
    margin-bottom: 10px;
    color: #2271b1;
}

.pictaffil-radio-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pictaffil-radio-label {
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.pictaffil-radio-desc {
    font-size: 13px;
    color: #646970;
    text-align: center;
}

/* Card Style Selector */
.pictaffil-card-style-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pictaffil-card-style-option {
    flex: 0 0 auto;
    width: 150px;
}

.pictaffil-card-style-option input[type="radio"] {
    display: none;
}

.pictaffil-card-style-preview {
    height: 180px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.pictaffil-card-style-option input[type="radio"]:checked + label .pictaffil-card-style-preview {
    border-color: #2271b1;
    background: #f0f7fb;
}

.pictaffil-card-style-name {
    text-align: center;
    font-weight: 600;
    margin-bottom: 5px;
}

.pictaffil-help-text {
    font-size: 12px;
    color: #646970;
    text-align: center;
}

/* Preview Elements */
.preview-image {
    width: 100%;
    height: 80px;
    background: #ddd;
    margin-bottom: 10px;
}

.preview-title {
    height: 10px;
    background: #ddd;
    margin-bottom: 10px;
    width: 90%;
}

.preview-price {
    height: 8px;
    background: #ddd;
    margin-bottom: 10px;
    width: 40%;
}

.preview-rating {
    height: 8px;
    background: #ddd;
    margin-bottom: 10px;
    width: 60%;
}

.preview-button {
    height: 20px;
    background: #ddd;
    width: 100%;
}

/* Info Box */
.pictaffil-info-box {
    background: #f0f7fb;
    border-left: 4px solid #2271b1;
    padding: 15px;
    display: flex;
    margin-bottom: 20px;
}

.pictaffil-info-icon {
    flex: 0 0 40px;
    color: #2271b1;
}

.pictaffil-info-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pictaffil-info-content {
    flex: 1;
}

.pictaffil-info-content p {
    margin-top: 0;
}

.pictaffil-info-content ul {
    margin-left: 20px;
}

/* Advanced Section */
.pictaffil-advanced-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pictaffil-advanced-option {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.pictaffil-option-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.pictaffil-option-icon {
    margin-right: 10px;
    color: #646970;
}

.pictaffil-option-title {
    font-weight: 600;
}

.pictaffil-option-content {
    padding: 15px;
}

/* Warning Box */
.pictaffil-warning-box {
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    padding: 15px;
    margin: 15px 0;
}

.pictaffil-warning-actions {
    margin-top: 15px;
}

.button-danger {
    color: #a00;
    border-color: #a00;
}

.button-danger:hover {
    color: #dc3232;
    border-color: #dc3232;
}

/* Submit Section */
.pictaffil-submit-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.pictaffil-settings-saved {
    margin-left: 15px;
    color: #46b450;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 782px) {
    .pictaffil-tab-nav {
        flex-wrap: wrap;
    }
    
    .pictaffil-field-row > label {
        flex: 0 0 100%;
        margin-bottom: 5px;
    }
    
    .pictaffil-field-input {
        flex: 0 0 100%;
    }
    
    .pictaffil-radio-tiles {
        flex-direction: column;
    }
    
    .pictaffil-card-style-selector {
        justify-content: center;
    }
}