/* Custom Swagger UI Styles for Better UX */

/* Response codes horizontal layout */
.responses-wrapper .responses-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.response-col_status {
    min-width: 80px;
    flex: 0 0 auto;
}

.response-col_description {
    flex: 1;
    min-width: 200px;
}

/* Enhanced response code buttons */
.responses-table .response .response-col_status {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    display: inline-block;
    min-width: 60px;
}

/* Status code color coding */
.responses-table .response .response-col_status:contains("200"),
.responses-table .response .response-col_status[data-status="200"] {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
}

.responses-table .response .response-col_status:contains("201"),
.responses-table .response .response-col_status[data-status="201"] {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-color: #17a2b8;
    color: #0c5460;
}

.responses-table .response .response-col_status:contains("400"),
.responses-table .response .response-col_status[data-status="400"] {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    color: #856404;
}

.responses-table .response .response-col_status:contains("401"),
.responses-table .response .response-col_status[data-status="401"] {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
}

.responses-table .response .response-col_status:contains("403"),
.responses-table .response .response-col_status[data-status="403"] {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
}

.responses-table .response .response-col_status:contains("404"),
.responses-table .response .response-col_status[data-status="404"] {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    border-color: #6c757d;
    color: #383d41;
}

.responses-table .response .response-col_status:contains("422"),
.responses-table .response .response-col_status[data-status="422"] {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-color: #e91e63;
    color: #880e4f;
}

.responses-table .response .response-col_status:contains("429"),
.responses-table .response .response-col_status[data-status="429"] {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff9800;
    color: #e65100;
}

.responses-table .response .response-col_status:contains("500"),
.responses-table .response .response-col_status[data-status="500"] {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
}

/* Hover effects for response codes */
.responses-table .response .response-col_status:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-width: 3px;
}

/* Response examples styling */
.response-content-type {
    margin-top: 10px;
}

.example-select {
    margin-bottom: 10px;
}

.example-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 200px;
}

/* Enhanced code blocks */
.highlight-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin: 10px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    overflow-x: auto;
}

/* Response description styling */
.response-col_description {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-left: 10px;
}

.response-col_description h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.response-col_description p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* Horizontal layout for response items */
.responses-table .response {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.responses-table .response:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Collapsible response details */
.response-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Enhanced authorization section */
.auth-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth-wrapper .btn.authorize {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-wrapper .btn.authorize:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

/* Enhanced operation blocks */
.opblock {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.opblock-summary {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.opblock-summary:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Method badges */
.opblock-summary-method {
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
}

/* Enhanced parameter sections */
.parameters-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
}

.parameter__name {
    font-weight: 600;
    color: #495057;
}

.parameter__type {
    color: #6c757d;
    font-style: italic;
}

/* Try it out section */
.try-out {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.try-out__btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.try-out__btn:hover {
    background: #1976d2;
}

/* Response status indicators */
.response-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.response-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Success responses */
.response-status.success {
    color: #28a745;
}

/* Error responses */
.response-status.error {
    color: #dc3545;
}

/* Warning responses */
.response-status.warning {
    color: #ffc107;
}

/* Info responses */
.response-status.info {
    color: #17a2b8;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .responses-table .response {
        flex-direction: column;
    }
    
    .response-col_status {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .response-col_description {
        margin-left: 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .responses-table .response {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .response-col_description {
        background: #1a202c;
        color: #cbd5e0;
    }
    
    .highlight-code {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
}