/* Custom styles for ReDoc API documentation */

:root {
    --primary-color: #2d3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

/* Header customization */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
}

.header p {
    margin: 10px 0 0;
    opacity: 0.8;
    font-size: 16px;
}

.logo {
    max-height: 60px;
    margin-bottom: 15px;
}

/* ReDoc customization */
redoc {
    display: block;
    height: calc(100vh - 120px);
}

/* Custom styles for ReDoc elements */
:root {
    --theme-color: var(--secondary-color);
    --sidebar-bg-color: var(--light-bg);
    --sidebar-width: 300px;
}

/* Method badges */
[data-method="get"] {
    background-color: #61affe !important;
}

[data-method="post"] {
    background-color: #49cc90 !important;
}

[data-method="put"] {
    background-color: #fca130 !important;
}

[data-method="delete"] {
    background-color: #f93e3e !important;
}

/* Response status codes */
[data-status="200"], [data-status="201"] {
    color: #49cc90 !important;
}

[data-status="400"], [data-status="401"], [data-status="403"], [data-status="404"] {
    color: #f93e3e !important;
}

[data-status="500"], [data-status="502"], [data-status="503"], [data-status="504"] {
    color: #fca130 !important;
}

/* Improve code blocks */
pre {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Improve tables */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--light-bg);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }
    
    .header p {
        font-size: 14px;
    }
}
