body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
}

/* Sidebar styles */
.sidebar {
    width: 280px;
    background-color: white;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
}

.sidebar h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sidebar li {
    margin-bottom: 5px;
}

.sidebar a {
    color: #34495e;
    text-decoration: none;
    font-size: 0.9em;
    display: block;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.sidebar a:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.sidebar .section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    margin: 20px -20px 15px -20px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.sidebar .section-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sidebar .section-header:hover:before {
    transform: translateX(0);
}

.sidebar .section-header.state-transitions {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.sidebar .category {
    font-weight: 600;
    color: #34495e;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 0.85em;
    padding-left: 10px;
    border-left: 3px solid #3498db;
}

/* Search box styles */
.search-container {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #ecf0f1;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #3498db;
}

.search-input::placeholder {
    color: #95a5a6;
}

.sidebar li.hidden {
    display: none;
}

.sidebar .no-results {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
    font-size: 0.9em;
    display: none;
}

/* Main content styles */
.main-content {
    margin-left: 320px;
    padding: 20px 40px;
    max-width: 900px;
}

h1, h2, h3, h4 {
    color: #2c3e50;
}

h1 {
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

h2 {
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
    margin-top: 30px;
}

h3 {
    color: #34495e;
    margin-top: 25px;
}

.nav {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav li {
    display: inline-block;
    margin-right: 20px;
}

.nav a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    text-decoration: underline;
}

.category {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.operation {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin-bottom: 30px;
}

.description {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
}

.parameters {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.parameter {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #bdc3c7;
}

.parameter:last-child {
    border-bottom: none;
}

.param-name {
    font-weight: bold;
    color: #2c3e50;
}

.param-type {
    color: #e74c3c;
    font-family: monospace;
    font-size: 0.9em;
}

.param-required {
    color: #e74c3c;
    font-weight: bold;
}

.param-optional {
    color: #95a5a6;
}

.code-example {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
    margin-top: 10px;
}

/* Interactive example styles */
.example-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.example-code {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
    margin-bottom: 10px;
    position: relative;
    white-space: pre-wrap;
    overflow-x: auto;
}

.run-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.run-button:hover {
    background-color: #2980b9;
}

.run-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.example-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.85em;
    display: none;
}

.example-result.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.example-result.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background-color: #2980b9;
}

.info-note {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    margin: 10px 0;
    border-left: 4px solid #1976d2;
}

.path-info {
    background-color: #f5f7fa;
    border: 1px solid #e1e5eb;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.path-info h6 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 0.95em;
}

.path-info h6:first-child {
    margin-top: 0;
}

.path-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.path-table th {
    background-color: #e9ecef;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.path-table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
}

.path-table code {
    background-color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.path-info ul {
    margin: 0;
    padding-left: 25px;
}

.path-info li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.path-info li code {
    background-color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Preloader styles */
#preloader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.preloader--visible {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-content {
    text-align: center;
    background: white;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preloader-text {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.preloader-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 300px;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}