/* Custom Swagger UI Styles */

/* Header customization */
.swagger-ui .topbar {
    background-color: #2e5c80;
    padding: 8px 0;
}

.swagger-ui .topbar .download-url-wrapper {
    display: none;
}

/* Logo and title */
.swagger-ui .topbar .topbar-wrapper::before {
    content: "Core Service API";
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding-left: 20px;
}

/* Operation tags */
.swagger-ui .opblock-tag {
    color: #2e5c80;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #e3e8ed;
    padding-bottom: 5px;
}

/* Operation summaries */
.swagger-ui .opblock .opblock-summary {
    border-color: #2e5c80;
}

.swagger-ui .opblock.opblock-get .opblock-summary {
    border-color: #61affe;
}

.swagger-ui .opblock.opblock-post .opblock-summary {
    border-color: #49cc90;
}

.swagger-ui .opblock.opblock-put .opblock-summary {
    border-color: #fca130;
}

.swagger-ui .opblock.opblock-delete .opblock-summary {
    border-color: #f93e3e;
}

/* Response codes */
.swagger-ui .responses-inner h4 {
    color: #2e5c80;
    font-weight: 600;
}

/* Schema models */
.swagger-ui .model-box {
    background-color: #f8f9fa;
    border: 1px solid #e3e8ed;
}

/* Buttons */
.swagger-ui .btn.authorize {
    background-color: #2e5c80;
    color: white;
    border-color: #2e5c80;
}

.swagger-ui .btn.authorize:hover {
    background-color: #1e3d54;
    border-color: #1e3d54;
}

/* Execute button */
.swagger-ui .btn.execute {
    background-color: #4990e2;
    color: white;
    border-color: #4990e2;
}

.swagger-ui .btn.execute:hover {
    background-color: #357abd;
    border-color: #357abd;
}

/* Parameter tables */
.swagger-ui table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 4px;
    overflow: hidden;
}

.swagger-ui table thead tr th {
    background-color: #2e5c80;
    color: white;
    font-weight: 600;
    padding: 12px 8px;
}

.swagger-ui table tbody tr td {
    padding: 10px 8px;
    border-bottom: 1px solid #e3e8ed;
}

/* Response section */
.swagger-ui .responses-wrapper {
    margin-top: 20px;
}

/* Version selector */
.swagger-ui select {
    border: 1px solid #2e5c80;
    border-radius: 4px;
    padding: 5px;
}

/* Info section */
.swagger-ui .info {
    margin: 20px 0;
}

.swagger-ui .info .title {
    color: #2e5c80;
    font-size: 28px;
    font-weight: 700;
}

.swagger-ui .info .description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* Try it out button */
.swagger-ui .btn.try-out__btn {
    background-color: #f8f9fa;
    color: #2e5c80;
    border: 1px solid #2e5c80;
}

.swagger-ui .btn.try-out__btn:hover {
    background-color: #e3e8ed;
}

/* Clear button */
.swagger-ui .btn.clear {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.swagger-ui .btn.clear:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Loading animation */
.swagger-ui .loading-container {
    padding: 40px;
    text-align: center;
}

/* Error highlighting */
.swagger-ui .parameter__name.required::after {
    color: #f93e3e;
    content: " *";
    font-weight: bold;
}

/* Response highlight */
.swagger-ui .highlight-code {
    background-color: #f8f9fa;
    border: 1px solid #e3e8ed;
    border-radius: 4px;
    padding: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .swagger-ui .info .title {
        font-size: 22px;
    }
    
    .swagger-ui .opblock-tag {
        font-size: 16px;
    }
    
    .swagger-ui table {
        font-size: 12px;
    }
    
    .swagger-ui table thead tr th,
    .swagger-ui table tbody tr td {
        padding: 8px 4px;
    }
}
