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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0e17;
    color: #e0e6ed;
    min-height: 100vh;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 48px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.header .subtitle {
    font-size: 15px;
    color: #6b7a90;
}

.header .badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge.online { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge.offline { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge.waiting { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }

/* Cards */
.card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 .icon {
    font-size: 20px;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.status-item {
    background: #0d1220;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.status-dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.status-dot.yellow { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.5); }
.status-dot.gray { background: #4b5563; }

.status-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.status-info p {
    font-size: 12px;
    color: #6b7a90;
    margin-top: 2px;
}

/* Architecture Flow */
.flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

.flow-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 36px;
}

.flow-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.flow-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    opacity: 0.4;
}

.flow-content {
    padding: 6px 0 28px 0;
    flex: 1;
}

.flow-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.flow-content p {
    font-size: 13px;
    color: #6b7a90;
    line-height: 1.5;
}

.flow-content .tech {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 6px;
    font-size: 12px;
    color: #60a5fa;
    font-weight: 500;
    margin-right: 6px;
}

/* Restaurant Info */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.info-item {
    background: #0d1220;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 18px;
}

.info-item .label {
    font-size: 12px;
    color: #6b7a90;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.info-item .value.small {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

/* API Endpoints */
.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #0d1220;
    border: 1px solid #1e293b;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
}

.endpoint .method {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.method.get { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.method.post { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.method.delete { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.method.ws { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.endpoint .path { color: #e0e6ed; }
.endpoint .desc { color: #6b7a90; margin-left: auto; font-family: 'Segoe UI', sans-serif; font-size: 12px; }

/* Footer */
.footer {
    text-align: center;
    padding: 32px 0 16px;
    color: #4b5563;
    font-size: 13px;
}

.footer a {
    color: #6b7a90;
    text-decoration: none;
}

/* Pulse animation for online status */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

/* Responsive */
@media (max-width: 600px) {
    .container { padding: 24px 16px; }
    .header h1 { font-size: 22px; }
    .status-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .endpoint .desc { display: none; }
}
