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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #1a1a2e;
    color: #eee;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

header h1 {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #888;
    font-size: 0.9rem;
}

.info-panel {
    background: #252545;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-panel h3 {
    color: #00d4ff;
    margin-bottom: 10px;
}

.info-panel code {
    display: block;
    background: #1a1a2e;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    color: #4ade80;
    margin-bottom: 10px;
    word-break: break-all;
}

.info-panel p {
    color: #888;
    font-size: 0.85rem;
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #00d4ff;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #00b8e6;
}

.btn-danger {
    background: #ff4757;
    color: white;
}

.btn-danger:hover {
    background: #ff3344;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #5b6270;
}

.btn-muted {
    background: #374151;
    color: #9ca3af;
}

.status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-connected {
    background: #065f46;
    color: #34d399;
}

.status-disconnected {
    background: #7f1d1d;
    color: #fca5a5;
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.9rem;
}

.auto-refresh input {
    width: 18px;
    height: 18px;
}

.count {
    margin-left: auto;
    color: #888;
    font-size: 0.9rem;
}

.webhook-card {
    background: #252545;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.webhook-card.webhook-new {
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    }
}

.webhook-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #1e1e3f;
    flex-wrap: wrap;
}

.method {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
}

.method-get { background: #4ade80; color: #1a1a2e; }
.method-post { background: #00d4ff; color: #1a1a2e; }
.method-put { background: #fbbf24; color: #1a1a2e; }
.method-delete { background: #ff4757; color: white; }
.method-patch { background: #a78bfa; color: #1a1a2e; }

.path {
    font-family: monospace;
    color: #ddd;
}

.timestamp {
    margin-left: auto;
    color: #888;
    font-size: 0.85rem;
}

.webhook-meta {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    background: #2a2a4a;
    font-size: 0.85rem;
    color: #888;
}

.webhook-body {
    padding: 15px 20px;
}

.webhook-body details {
    margin-bottom: 10px;
}

.webhook-body summary {
    cursor: pointer;
    color: #00d4ff;
    font-weight: 500;
    padding: 8px 0;
}

.webhook-body pre {
    background: #1a1a2e;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 8px;
}

.loading, .empty, .error {
    text-align: center;
    padding: 40px;
    color: #888;
}

.error {
    color: #ff4757;
}

.null {
    color: #888;
    font-style: italic;
}
