* { box-sizing: border-box; margin: 0; }
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #0f1117;
    color: #e4e7f0;
    padding: 24px;
    min-height: 100vh;
}
.container { max-width: 1400px; margin: 0 auto; }
h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sub { color: #8892a0; font-size: 14px; font-weight: 400; margin-left: 8px; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}
.card {
    background: #181b24;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #2a2d37;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.card h3 {
    font-size: 16px;
    font-weight: 500;
    color: #a0b0c0;
    margin-bottom: 16px;
    border-bottom: 1px solid #2a2d37;
    padding-bottom: 10px;
}
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot.green { background: #2ecc71; box-shadow: 0 0 6px #2ecc7180; }
.dot.red { background: #e74c3c; box-shadow: 0 0 6px #e74c3c80; }
.dot.gray { background: #4a4f5e; }
.btn {
    background: #2b6fdb;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:hover:not(:disabled) { background: #1f5bbf; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: #2a2d37; color: #c0c8d4; }
.btn-secondary:hover:not(:disabled) { background: #3a3f4b; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-success:hover:not(:disabled) { background: #1b5e20; }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b71c1c; }
.flex { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.log-area {
    background: #0c0e14;
    border-radius: 12px;
    padding: 14px;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #2a2d37;
    white-space: pre-wrap;
    word-break: break-all;
    color: #b0c0d0;
}
.log-area .error { color: #f28b82; }
.log-area .success { color: #81c995; }
.log-area .info { color: #8ab4f8; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th {
    text-align: left;
    padding: 10px 8px;
    color: #8892a0;
    font-weight: 500;
    border-bottom: 1px solid #2a2d37;
}
td {
    padding: 10px 8px;
    border-bottom: 1px solid #1e212a;
    color: #d0d8e0;
}
textarea {
    width: 100%;
    background: #0c0e14;
    border: 1px solid #2a2d37;
    color: #e4e7f0;
    border-radius: 8px;
    padding: 10px;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 200px;
}
.badge {
    background: #2a2d37;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #b0c0d0;
}
.link { color: #8ab4f8; text-decoration: none; }
.link:hover { text-decoration: underline; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.text-muted { color: #6a7a8a; font-size: 13px; }
.tag {
    display: inline-block;
    background: #2a2d37;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #b0c0d0;
}
.input-sm {
    background: #0c0e14;
    border: 1px solid #2a2d37;
    color: #e4e7f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    width: 200px;
}
.cron-input {
    background: #0c0e14;
    border: 1px solid #2a2d37;
    color: #e4e7f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    width: 200px;
    font-family: 'Menlo', 'Consolas', monospace;
}
@media (max-width: 600px) {
    body { padding: 12px; }
    .grid { grid-template-columns: 1fr; }
    .grid-2col { grid-template-columns: 1fr; }
}

.form-label {
    display: block;
    font-size: 12px;
    color: #8892a0;
    margin-bottom: 4px;
}
details summary {
    font-weight: 500;
}
details[open] summary {
    margin-bottom: 16px;
}