.fullmetrix-settings {
    max-width: 600px;
}

.fullmetrix-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
}

.fullmetrix-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 16px;
}

.fullmetrix-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.fullmetrix-status-connected .fullmetrix-status-dot {
    background-color: #00a32a;
}

.fullmetrix-status-disconnected .fullmetrix-status-dot {
    background-color: #dba617;
}

.fullmetrix-info {
    color: #50575e;
    margin-bottom: 20px;
}

.fullmetrix-field {
    margin-bottom: 16px;
}

.fullmetrix-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.fullmetrix-code-input {
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.fullmetrix-code-display {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.fullmetrix-code-display label {
    display: block;
    font-size: 12px;
    color: #50575e;
    margin-bottom: 8px;
}

.fullmetrix-code-display code {
    font-size: 16px;
    letter-spacing: 2px;
}

.fullmetrix-disconnect-form {
    margin-top: 20px;
}

/* Sync Activity */
.fullmetrix-sync-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 14px;
}

.fullmetrix-sync-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    margin-bottom: 8px;
}

.fullmetrix-sync-active {
    color: #2271b1;
}

.fullmetrix-sync-done {
    color: #00a32a;
}

.fullmetrix-sync-done .dashicons {
    color: #00a32a;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.fullmetrix-sync-waiting {
    color: #50575e;
}

.fullmetrix-sync-waiting .dashicons {
    color: #dba617;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.fullmetrix-sync-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2271b1;
    animation: fullmetrix-pulse 1.5s ease-in-out infinite;
}

@keyframes fullmetrix-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.fullmetrix-sync-hint {
    color: #50575e;
    font-size: 13px;
    margin: 4px 0 0;
}

.fullmetrix-sync-type {
    color: #787c82;
    font-size: 13px;
    margin: 0 0 4px;
}

.fullmetrix-sync-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.fullmetrix-sync-entity {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 10px 14px;
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.fullmetrix-sync-entity-count {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.fullmetrix-sync-entity-label {
    font-size: 11px;
    color: #50575e;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fullmetrix-sync-meta {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #787c82;
}

/* Tabs */
.fullmetrix-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #c3c4c7;
}

.fullmetrix-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #50575e;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.fullmetrix-tab:hover {
    color: #1d2327;
}

.fullmetrix-tab-active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

/* Logs */
.fullmetrix-logs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.fullmetrix-logs-header h3 {
    margin: 0;
    font-size: 14px;
}

.fullmetrix-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fullmetrix-logs-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid #c3c4c7;
    font-weight: 600;
    color: #1d2327;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fullmetrix-logs-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.fullmetrix-logs-table tbody tr:hover {
    background: #f6f7f7;
}

.fullmetrix-log-date {
    white-space: nowrap;
    color: #787c82;
    font-size: 12px;
}

.fullmetrix-log-details {
    color: #787c82;
    font-size: 12px;
    max-width: 250px;
    word-break: break-word;
}

.fullmetrix-log-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.fullmetrix-log-badge-success {
    background: #edfaef;
    color: #00a32a;
}

.fullmetrix-log-badge-info {
    background: #e7f3ff;
    color: #2271b1;
}

.fullmetrix-log-badge-error {
    background: #fce4e4;
    color: #d63638;
}

.fullmetrix-log-badge-neutral {
    background: #f0f0f1;
    color: #50575e;
}
