* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.header {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f172a;
}

.buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #2563eb;
}

.btn.secondary {
    background: #10b981;
}

.btn.secondary:hover {
    background: #059669;
}

.btn.danger {
    background: #ef4444;
}

.btn.danger:hover {
    background: #dc2626;
}

.monitoring-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: calc(100vh - 200px);
}

.requests-panel, .details-panel {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.panel-header {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.requests-list {
    height: calc(100% - 57px);
    overflow-y: auto;
}

.request-item {
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
}

.request-item:hover {
    background: #f8fafc;
}

.request-item.active {
    background: #eff6ff;
    border-right: 3px solid #3b82f6;
}

.request-method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.method-get { background: #dcfce7; color: #166534; }
.method-post { background: #fef3c7; color: #92400e; }
.method-xhr { background: #e0e7ff; color: #3730a3; }
.method-fetch { background: #f3e8ff; color: #6b21a8; }
.method-script { background: #fecaca; color: #991b1b; }
.method-link { background: #fed7aa; color: #9a3412; }
.method-img { background: #e0f2fe; color: #0c4a6e; }
.method-iframe { background: #f3e8ff; color: #7c2d12; }

.request-url {
    font-size: 13px;
    color: #475569;
    word-break: break-all;
}

.request-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.details-content {
    height: calc(100% - 57px);
    overflow-y: auto;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    text-align: center;
}

.tabs {
    border-bottom: 1px solid #e2e8f0;
    display: flex;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: #475569;
}

.tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.info-table th,
.info-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.info-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 12px;
    color: #475569;
    text-transform: uppercase;
    width: 30%;
}

.info-table td {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
}

.json-editor {
    background: #1e293b;
    color: #e2e8f0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    padding: 16px;
    border-radius: 8px;
    overflow: auto;
    line-height: 1.4;
}

.json-key { color: #7dd3fc; }
.json-string { color: #86efac; }
.json-number { color: #fbbf24; }
.json-boolean { color: #f87171; }
.json-null { color: #94a3b8; }

.cmp-status {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-ready { background: #10b981; }
.status-loading { background: #f59e0b; }
.status-error { background: #ef4444; }