/* Cloud Auto Importer Admin Styles - DESKTOP OPTIMIZED VERSION 2.0 */
/* Complete file with mcai_ prefix */

/* ============ MAIN DASHBOARD LAYOUT ============ */
.mcai-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 28px;
    margin: 24px 0;
}

/* Desktop large screens - 3 columns */
@media (min-width: 1600px) {
    .mcai-dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop normal - 2 columns */
@media (min-width: 1200px) and (max-width: 1599px) {
    .mcai-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small desktop / tablet - 1 column */
@media (max-width: 1199px) {
    .mcai-dashboard {
        grid-template-columns: 1fr;
    }
}

/* ============ CARDS ============ */
.mcai-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 28px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    min-width: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    height: fit-content;
}

.mcai-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #8c8f94;
}

.mcai-card h2 {
    margin: 0 0 20px 0;
    color: #1d2327;
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Status card specific */
.mcai-card:first-child {
    border-top: 3px solid #2271b1;
}

/* ============ STATUS INDICATORS ============ */
.mcai-status {
    padding: 14px 16px;
    border-left: 4px solid #72aee6;
    margin: 20px 0;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    border-radius: 0 4px 4px 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
}

.mcai-status.connected {
    border-left-color: #00a32a;
    background: #edfaef;
}

.mcai-status.disconnected {
    border-left-color: #d63638;
    background: #fcf0f1;
}

.mcai-status .dashicons {
    margin-right: 12px;
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ============ CONNECTION STATUS BAR ============ */
.mcai-quick-stats-bar {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.mcai-quick-stats-bar .mcai-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0;
}

@media (max-width: 1000px) {
    .mcai-quick-stats-bar .mcai-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Desktop specific - wider connection card */
@media (min-width: 1400px) {
    .mcai-quick-stats-bar .mcai-stats-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.mcai-quick-stats-bar .connection-status {
    background: #f6f7f7;
    border: 2px solid #8c8f94;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.mcai-quick-stats-bar .connection-status.connected {
    border-color: #00a32a;
    background: #edfaef;
}

.mcai-quick-stats-bar .connection-status .mcai-stat-value {
    font-size: 22px;
    color: #1d2327;
    margin: 12px 0;
    font-weight: 600;
}

.mcai-quick-stats-bar .documentation-card {
    background: #f5f5f5;
    border: 2px solid #8c8f94;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-radius: 8px;
}

.mcai-quick-stats-bar .documentation-card h4 {
    color: #3c434a;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.mcai-quick-stats-bar .documentation-card p {
    margin: 8px 0 16px 0;
    color: #646970;
    font-size: 14px;
}

.mcai-quick-stats-bar .documentation-card .button-secondary {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #3c434a;
    font-weight: 600;
    padding: 10px 20px;
    width: 100%;
    margin-top: auto;
}

.mcai-quick-stats-bar .documentation-card .button-secondary:hover {
    background: #e0e0e0;
    border-color: #787c82;
}

/* ============ FORM TABLE - Desktop Optimized ============ */
.mcai-card .form-table {
    margin-top: 0;
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.mcai-card .form-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.mcai-card .form-table tr:last-child {
    border-bottom: none;
}

.mcai-card .form-table th {
    width: 30%;
    padding: 16px 16px 16px 0;
    font-weight: 600;
    color: #1d2327;
    vertical-align: top;
    text-align: left;
    background: #f8f9fa;
    border-right: 1px solid #f0f0f1;
}

.mcai-card .form-table td {
    width: 70%;
    padding: 16px 0 16px 16px;
    vertical-align: middle;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: white;
}

/* Form controls - wider on desktop */
.mcai-card input[type="url"],
.mcai-card input[type="text"],
.mcai-card input[type="number"],
.mcai-card select {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Limit width for number inputs on desktop */
.mcai-card input[type="number"] {
    max-width: 150px;
}

.mcai-card input[type="url"]:focus,
.mcai-card input[type="text"]:focus,
.mcai-card input[type="number"]:focus,
.mcai-card select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Checkboxes and labels */
.mcai-card label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    width: auto;
    max-width: 100%;
}

.mcai-card input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Description text */
.mcai-card .description {
    color: #646970;
    font-size: 13px;
    margin: 10px 0 0 0;
    line-height: 1.5;
    display: block;
    min-width: 0;
    word-wrap: break-word;
}

/* Compression options */
#mcai-compression-options {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

#mcai-compression-options label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1d2327;
}

#mcai-quality-slider {
    margin: 10px 0 15px 0;
}

#mcai-quality-value {
    font-weight: 700;
    color: #2271b1;
    margin-left: 8px;
}

/* Batch size select */
#mcai_batch_size {
    min-width: 200px;
    padding: 8px 32px 8px 12px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Submit button area */
.mcai-card .submit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mcai-card .submit .spinner {
    float: none;
    margin: 0;
}

/* Tooltips */
.mcai-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #8c8f94;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcai-tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1d2327;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
}

.mcai-tooltip-text:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1d2327;
}

.mcai-tooltip:hover .mcai-tooltip-text {
    display: block;
}

/* ============ CONNECTION ACTIONS ============ */
.mcai-connection-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mcai-connection-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: fit-content;
    padding: 8px 16px;
}

/* ============ STATS GRID - Desktop ============ */
.mcai-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.mcai-stat-card {
    text-align: center;
    padding: 24px 16px;
    background: #f6f7f7;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.mcai-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mcai-stat-card.success {
    border-color: #46b450;
    background: #edfaef;
}

.mcai-stat-card.info {
    border-color: #72aee6;
    background: #f0f6ff;
}

.mcai-stat-card.warning {
    border-color: #ffb900;
    background: #fef5ea;
}

.mcai-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 8px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.mcai-stat-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stats in success/warning colors */
.mcai-stat-card.success .mcai-stat-number {
    color: #00a32a;
}

.mcai-stat-card.info .mcai-stat-number {
    color: #2271b1;
}

.mcai-stat-card.warning .mcai-stat-number {
    color: #dba617;
}

/* ============ STEPS COMPONENT - Desktop ============ */
.mcai-steps {
    margin: 24px 0;
}

.mcai-step {
    display: flex;
    align-items: flex-start;
    margin: 16px 0;
    padding: 20px;
    background: #f6f7f7;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    transition: transform 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.mcai-step:hover {
    transform: translateX(6px);
}

.mcai-step-number {
    background: #2271b1;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

.mcai-step-content {
    flex: 1;
}

.mcai-step-content h3 {
    margin: 0 0 8px 0;
    color: #1d2327;
    font-size: 1.1rem;
}

.mcai-step-content p {
    margin: 0;
    color: #3c434a;
}

/* ============ PRIMARY BUTTON ============ */
.mcai-card .button-primary {
    background: #2271b1;
    border-color: #135e96;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    height: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.mcai-card .button-primary:hover {
    background: #135e96;
    border-color: #0c4b7a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(19, 94, 150, 0.3);
}

/* ============ PROGRESS BAR CONTAINER ============ */
.mcai-progress-container {
    background: #f8f9fa;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 28px;
    margin: 24px 0;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    min-width: 0;
}

.mcai-progress-container.completed {
    background: #edfaef;
    border-color: #46b450;
}

.mcai-progress-container h3 {
    margin: 0 0 16px 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Progress Bar */
.mcai-progress-bar {
    height: 12px;
    background: #f0f0f1;
    border-radius: 6px;
    overflow: hidden;
    margin: 16px 0;
    position: relative;
    width: 100%;
}

.mcai-progress-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.mcai-progress-container.completed .mcai-progress-fill {
    background: #00a32a;
}

.mcai-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 16px;
    min-width: 0;
}

#mcai-progress-percentage {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
    min-width: 50px;
    flex-shrink: 0;
}

.mcai-progress-container.completed #mcai-progress-percentage {
    color: #00a32a;
}

#mcai-progress-details {
    color: #646970;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcai-progress-stats {
    background: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    margin: 16px 0;
    text-align: center;
    font-weight: 500;
    overflow: hidden;
    min-width: 0;
}

.mcai-progress-stats span {
    color: #2271b1;
    font-weight: 700;
    display: inline-block;
}

.mcai-progress-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mcai-progress-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-weight: 500;
    flex-shrink: 0;
    min-width: fit-content;
}

.mcai-progress-actions .button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* ============ NOTIFICATIONS ============ */
.mcai-notification {
    margin: 20px 0;
}

.mcai-notification p {
    margin: 0;
}

/* ============ LOGS PAGE STYLES ============ */
.mcai-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.mcai-status-processing {
    background: #f0f6ff;
    color: #2271b1;
    border: 1px solid #c6dbf2;
}

.mcai-status-completed {
    background: #edfaef;
    color: #00a32a;
    border: 1px solid #b8e6bf;
}

.mcai-status-failed {
    background: #fcf0f1;
    color: #d63638;
    border: 1px solid #f7d7d9;
}

.mcai-logs-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
    text-align: center;
}

/* ============ SETTINGS PAGE STYLES ============ */
.mcai-settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.mcai-settings-container .mcai-card {
    margin-bottom: 24px;
}

.mcai-settings-container .form-table {
    margin-bottom: 20px;
}

.mcai-settings-container .submit {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ============ PRIVACY DETAILS ============ */
#mcai-privacy-details h4 {
    margin-top: 0;
    color: #1d2327;
}

#mcai-privacy-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

#mcai-privacy-details li {
    margin-bottom: 5px;
    color: #3c434a;
}

/* ============ FEATURE LIST ============ */
.mcai-feature-list {
    margin-top: 24px;
}

.mcai-feature-list h3 {
    margin-bottom: 12px;
    color: #1d2327;
    font-size: 1rem;
}

.mcai-feature-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mcai-feature-list li {
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3c434a;
}

.mcai-feature-list .dashicons {
    color: #00a32a;
    flex-shrink: 0;
    margin-top: 0;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ IMPORT BUTTON DISABLED STATE ============ */
#mcai-start-import-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   SETUP GUIDE STYLES - Responsive Design
   ============================================ */

.mcai-guide-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Guide Header */
.mcai-guide-header {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mcai-guide-header h1 {
    color: white;
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcai-guide-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Guide Container */
.mcai-guide-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Navigation */
.mcai-guide-nav {
    position: sticky;
    top: 32px;
    height: fit-content;
}

.mcai-nav-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mcai-nav-card h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.mcai-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mcai-nav-links li {
    margin: 0;
    padding: 0;
}

.mcai-nav-links a {
    display: block;
    padding: 10px 15px;
    color: #2271b1;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 5px;
    border-left: 3px solid transparent;
}

.mcai-nav-links a:hover {
    background: #f0f6fc;
    border-left-color: #2271b1;
}

.mcai-nav-links a:active {
    background: #dcecf8;
}

/* Guide Content */
.mcai-guide-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #ccd0d4;
}

/* Section Header */
.mcai-guide-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e4e7;
}

.mcai-guide-section:last-child {
    border-bottom: none;
}

.mcai-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.mcai-section-header h2 {
    margin: 0;
    color: #1d2327;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcai-section-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcai-section-badge.important {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.mcai-section-badge.required {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mcai-section-badge.critical {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Privacy Principles */
.mcai-privacy-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.mcai-principle-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s;
}

.mcai-principle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mcai-principle-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.mcai-principle-card h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.mcai-principle-card ul {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
}

.mcai-principle-card li {
    margin: 8px 0;
    padding-left: 25px;
    position: relative;
}

.mcai-principle-card .dashicons {
    position: absolute;
    left: 0;
    top: 2px;
    color: #46b450;
}

/* Steps */
.mcai-step-by-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mcai-step-tip,
.mcai-step-warning,
.mcai-step-important {
    background: white;
    border-left: 4px solid;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
}

.mcai-step-tip {
    border-left-color: #00a0d2;
    background: #f0f6fc;
}

.mcai-step-warning {
    border-left-color: #ffb900;
    background: #fff8e5;
}

.mcai-step-important {
    border-left-color: #d63638;
    background: #fcf0f1;
}

.mcai-code-block {
    display: block;
    background: #f6f7f7;
    padding: 12px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    margin: 10px 0;
    overflow-x: auto;
    border: 1px solid #dcdcde;
}

/* Access Rules */
.mcai-access-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.mcai-rule-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.mcai-rule-card.rule-required {
    border-left: 4px solid #d63638;
}

.mcai-rule-card.rule-best {
    border-left: 4px solid #00a32a;
}

.mcai-rule-card h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
}

.mcai-rule-card ul {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
}

.mcai-rule-card li {
    margin: 8px 0;
    padding-left: 25px;
    position: relative;
}

.mcai-rule-card .dashicons {
    position: absolute;
    left: 0;
    top: 2px;
    color: #46b450;
}

/* Setup Flow */
.mcai-setup-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mcai-flow-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f0f6fc;
    border-radius: 8px;
    border: 1px solid #c5d9ed;
}

.mcai-flow-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.mcai-flow-content {
    flex: 1;
}

.mcai-flow-content h3 {
    margin: 0 0 8px 0;
    color: #1d2327;
    font-size: 16px;
}

/* Troubleshooting */
.mcai-troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.mcai-issue {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.mcai-issue h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
}

.mcai-issue ol {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.mcai-issue li {
    margin: 8px 0;
}

/* FAQ */
.mcai-faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mcai-faq-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.mcai-faq-item h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 16px;
}

/* CTA */
.mcai-guide-cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f0fe 100%);
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #c5d9ed;
}

.mcai-guide-cta h2 {
    margin: 0 0 15px 0;
    color: #1d2327;
}

.mcai-guide-cta p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #646970;
}

.mcai-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Checklist */
.mcai-consent-checklist {
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.mcai-consent-checklist h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
}

.mcai-consent-checklist ol {
    margin: 15px 0 0 0;
    padding-left: 25px;
}

.mcai-consent-checklist li {
    margin: 10px 0;
    color: #2c3338;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ============================================ */

@media (max-width: 1024px) {
    .mcai-guide-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mcai-guide-nav {
        position: static;
    }
    
    .mcai-privacy-principles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .mcai-dashboard {
        grid-template-columns: 1fr;
    }
    
    .mcai-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mcai-feature-list ul {
        grid-template-columns: 1fr;
    }
    
    /* Fixed form table mobile layout */
    .mcai-card .form-table {
        display: table;
        width: 100%;
    }
    
    .mcai-card .form-table th,
    .mcai-card .form-table td {
        display: table-cell;
        width: auto;
        padding: 12px 8px;
        border-bottom: 1px solid #f0f0f1;
    }
    
    .mcai-card .form-table th {
        width: 35%;
        font-size: 14px;
        padding-right: 8px;
        border-right: none;
        background: transparent;
    }
    
    .mcai-card .form-table td {
        width: 65%;
        padding-left: 8px;
    }
    
    .mcai-card input[type="url"],
    .mcai-card input[type="text"],
    .mcai-card input[type="number"],
    .mcai-card select {
        max-width: 100%;
        width: 100%;
    }
    
    #mcai_batch_size {
        min-width: 150px;
    }
    
    /* Fixed progress actions */
    .mcai-progress-actions,
    .mcai-connection-actions {
        flex-direction: column;
    }
    
    .mcai-progress-actions .button,
    .mcai-connection-actions .button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .mcai-guide-wrap {
        padding: 0 10px;
    }
    
    .mcai-guide-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .mcai-guide-header h1 {
        font-size: 24px;
    }
    
    .mcai-guide-content {
        padding: 20px;
    }
    
    .mcai-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mcai-access-rules,
    .mcai-troubleshooting-grid {
        grid-template-columns: 1fr;
    }
    
    .mcai-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mcai-flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mcai-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mcai-cta-buttons .button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .mcai-card {
        padding: 16px;
    }
    
    .mcai-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mcai-quick-stats-bar {
        padding: 16px;
        margin: 16px 0;
    }
    
    .mcai-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .mcai-status .dashicons {
        margin-right: 0;
    }
    
    .mcai-status span:last-child {
        white-space: normal;
    }
    
    /* Mobile form layout */
    .mcai-card .form-table {
        display: block;
    }
    
    .mcai-card .form-table tbody {
        display: block;
    }
    
    .mcai-card .form-table tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f1;
    }
    
    .mcai-card .form-table th,
    .mcai-card .form-table td {
        display: block;
        width: 100% !important;
        padding: 8px 0;
        border: none;
        background: transparent;
    }
    
    .mcai-card .form-table th {
        padding-bottom: 4px;
        font-size: 14px;
        color: #3c434a;
        background: transparent;
    }
    
    .mcai-card .form-table td {
        padding-top: 4px;
        padding-bottom: 12px;
    }
    
    .mcai-card .form-table tr:last-child {
        border-bottom: none;
    }
    
    .mcai-card .submit {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mcai-card .submit .button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .mcai-guide-header h1 {
        font-size: 22px;
    }
    
    .mcai-section-header h2 {
        font-size: 20px;
    }
    
    .mcai-step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .mcai-nav-card {
        padding: 15px;
    }
    
    .mcai-nav-links a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mcai-card h2 {
        font-size: 16px;
    }
    
    .mcai-stat-number,
    .mcai-stat-value {
        font-size: 20px;
    }
    
    .mcai-stat-label {
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .mcai-guide-nav,
    .mcai-guide-header .dashicons,
    .mcai-cta-buttons,
    .mcai-progress-actions,
    .mcai-connection-actions {
        display: none;
    }
    
    .mcai-guide-container {
        grid-template-columns: 1fr;
    }
    
    .mcai-guide-header {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .mcai-guide-header h1 {
        color: black;
    }
    
    .mcai-guide-content {
        border: 1px solid #000;
    }
    
    .mcai-guide-section {
        break-inside: avoid;
    }
    
    .mcai-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}