.smef-debug-page {
    max-width: 1400px;
}

.smef-debug-controls {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.smef-debug-controls button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.smef-debug-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.smef-stat-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    text-align: center;
}

.smef-stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #646970;
    text-transform: uppercase;
}

.smef-stat-value {
    font-size: 48px;
    font-weight: bold;
    color: #2271b1;
    margin: 10px 0;
}

.smef-stat-label {
    font-size: 12px;
    color: #646970;
}

.smef-debug-log {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
}

.smef-debug-log h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.smef-debug-log h2::before {
    content: "●";
    color: #00a32a;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

#smef-log-container {
    max-height: 600px;
    overflow-y: auto;
    background: #f6f7f7;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.smef-log-entry {
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    border-left: 4px solid #2271b1;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.smef-log-entry.type-api_request {
    border-left-color: #00a32a;
}

.smef-log-entry.type-editor_load {
    border-left-color: #2271b1;
}

.smef-log-entry.type-validation_error {
    border-left-color: #d63638;
}

.smef-log-entry.type-warning {
    border-left-color: #dba617;
}

.smef-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.smef-log-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.smef-log-type.type-api_request {
    background: #00a32a;
    color: #fff;
}

.smef-log-type.type-editor_load {
    background: #2271b1;
    color: #fff;
}

.smef-log-type.type-validation_error {
    background: #d63638;
    color: #fff;
}

.smef-log-type.type-warning {
    background: #dba617;
    color: #fff;
}

.smef-log-time {
    color: #646970;
    font-size: 11px;
}

.smef-log-message {
    margin-bottom: 8px;
    color: #1d2327;
}

.smef-log-data {
    background: #f6f7f7;
    padding: 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #646970;
    max-height: 200px;
    overflow-y: auto;
}

.smef-log-data pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.smef-loading {
    text-align: center;
    color: #646970;
    padding: 40px;
}

.smef-no-logs {
    text-align: center;
    color: #646970;
    padding: 40px;
    font-style: italic;
}
