:root {
    --sidebar-width: 260px;
}

body {
    background: #f8f9fa;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #1a1a2e;
    color: #fff;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    margin: 2px 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    margin-right: 8px;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 24px;
}

.endpoint-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.endpoint-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-get {
    background: #e3f2fd;
    color: #1565c0;
}

.method-post {
    background: #e8f5e9;
    color: #2e7d32;
}

.endpoint-path {
    font-family: 'SF Mono', monospace;
    font-size: 0.95rem;
    color: #333;
}

.endpoint-body {
    padding: 20px;
}

.response-area {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 16px;
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    max-height: 500px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.response-area img {
    max-width: 100%;
    border-radius: 6px;
}

.param-row {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.auth-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.auth-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-ko {
    background: #ffebee;
    color: #c62828;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.device-list-item {
    cursor: pointer;
    transition: background 0.15s;
}

.device-list-item:hover {
    background: #e3f2fd;
}

.device-list-item.active {
    background: #bbdefb;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand h5 {
    margin: 0;
    font-weight: 700;
}

.brand small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px 16px 8px;
    margin: 0;
}

.url-input {
    font-family: monospace;
}

.json-key {
    color: #9cdcfe;
}

.json-string {
    color: #ce9178;
}

.json-number {
    color: #b5cea8;
}

.json-boolean {
    color: #569cd6;
}

.json-null {
    color: #569cd6;
}