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

body {
    font-family: 'Noto Sans', sans-serif;
    background: #0b0b0f;
    color: #e8eaf0;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

header p {
    color: #8a8f9a;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #c4c9d2;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    background: #14141a;
    border: 1px solid #26262e;
    border-radius: 6px;
    color: #e8eaf0;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

input::placeholder, textarea::placeholder {
    color: #565b66;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.btn.primary {
    background: #3b82f6;
    color: #fff;
}

.btn.primary:hover:not(:disabled) {
    background: #2563eb;
}

.btn.secondary {
    background: #2a2a33;
    color: #e8eaf0;
}

.btn.secondary:hover:not(:disabled) {
    background: #3a3a45;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.status {
    background: #14141a;
    border: 1px solid #26262e;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

#statusText {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

#messageCount {
    font-size: 0.9rem;
    color: #8a8f9a;
}

.log {
    background: #0b0b0f;
    border: 1px solid #26262e;
    color: #3b82f6;
    font-family: 'Courier New', monospace;
    padding: 1rem;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.log:empty {
    display: none;
}

.log-entry {
    margin-bottom: 0.25rem;
}

.log-error {
    color: #f87171;
}

.log-success {
    color: #4ade80;
}

.webhooks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.webhooks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.webhook-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.webhook-url {
    flex: 1;
}

.btn-small {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: #3b82f6;
    color: #fff;
    flex: none;
}

.btn-small:hover:not(:disabled) {
    background: #2563eb;
}

.btn-small:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.remove-webhook {
    background: #2a2a33;
    color: #e8eaf0;
}

.remove-webhook:hover:not(:disabled) {
    background: #3a3a45;
}