/* VibeSEO Admin Styles */

.vibeseo-wrap {
    max-width: 900px;
}

/* Header */
.vibeseo-header {
    margin-bottom: 30px;
}

.vibeseo-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.vibeseo-logo h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: #1d2327;
}

.vibeseo-tagline {
    color: #646970;
    font-size: 14px;
    margin: 0;
}

/* Grid Layout */
.vibeseo-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .vibeseo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cards */
.vibeseo-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vibeseo-card h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
    padding: 0;
    color: #1d2327;
}

.vibeseo-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #1d2327;
}

.vibeseo-card-desc {
    color: #646970;
    font-size: 13px;
    margin: 0 0 20px;
}

.vibeseo-card-wide {
    grid-column: 1 / -1;
}

/* Field Groups */
.vibeseo-field-group {
    margin-bottom: 18px;
}

.vibeseo-field-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #1d2327;
}

.vibeseo-field-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.vibeseo-field-row .regular-text {
    flex: 1;
    max-width: 100%;
}

.vibeseo-field-row .button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    height: 32px;
    line-height: 30px;
    padding: 0 12px;
}

.vibeseo-field-row .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    margin-top: 1px;
}

/* Copied state */
.vibeseo-copied {
    color: #00a32a !important;
    border-color: #00a32a !important;
}

/* Key input */
.vibeseo-key-input {
    font-family: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* Actions */
.vibeseo-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.vibeseo-actions-row .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vibeseo-actions-row .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Status area */
.vibeseo-status-area {
    margin-bottom: 16px;
}

.vibeseo-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #646970;
}

.vibeseo-status-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-connected {
    background: #00a32a;
    box-shadow: 0 0 0 3px rgba(0, 163, 42, 0.2);
}

.dot-pending {
    background: #dba617;
    box-shadow: 0 0 0 3px rgba(219, 166, 23, 0.2);
}

.dot-disconnected {
    background: #cc1818;
    box-shadow: 0 0 0 3px rgba(204, 24, 24, 0.2);
}

/* Result messages */
.vibeseo-result {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vibeseo-result .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.vibeseo-result-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.vibeseo-result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Spin animation */
@keyframes vibeseo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: vibeseo-spin 1s linear infinite;
}

/* Last sync */
.vibeseo-last-sync {
    margin-top: 16px;
    font-size: 12px;
    color: #646970;
}

/* Log table */
.vibeseo-log-table {
    margin-top: 12px;
}

.vibeseo-log-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #646970;
}

.vibeseo-log-table td {
    font-size: 13px;
    vertical-align: middle;
}

/* Badges */
.vibeseo-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vibeseo-badge-created {
    background: #dbeafe;
    color: #1e40af;
}

.vibeseo-badge-updated {
    background: #dcfce7;
    color: #166534;
}

.vibeseo-badge-skipped {
    background: #f3f4f6;
    color: #6b7280;
}

.vibeseo-badge-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 600px) {
    .vibeseo-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .vibeseo-field-row .button {
        justify-content: center;
    }

    .vibeseo-actions-row {
        flex-direction: column;
    }
}
