/* Custom Swagger UI Styling - Dark Theme */
.swagger-ui {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #8e44ad 75%, #9b59b6 100%);
    min-height: 100vh;
}

/* Header styling */
.swagger-ui .topbar {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.swagger-ui .topbar .download-url-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
}

.swagger-ui .topbar .download-url-wrapper input[type=text] {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    color: #2d3748;
    font-weight: 500;
}

/* Main content area */
.swagger-ui .wrapper {
    background: transparent;
    color: #ffffff;
}

/* Make all text much brighter and more readable */
.swagger-ui {
    color: #ffffff !important;
}

/* Brighten all gray text - much lighter for human eyes! */
.swagger-ui .info .description,
.swagger-ui .opblock .opblock-summary-description,
.swagger-ui .opblock .opblock-section-header h4,
.swagger-ui .parameter__name,
.swagger-ui .responses-inner h4,
.swagger-ui .opblock .opblock-body,
.swagger-ui .opblock .opblock-summary-path,
.swagger-ui .opblock .opblock-summary-description,
.swagger-ui .opblock .opblock-section-header h4,
.swagger-ui .parameter__type,
.swagger-ui .responses-inner .response-col_status,
.swagger-ui .opblock .opblock-body p,
.swagger-ui .opblock .opblock-body div,
.swagger-ui .opblock .opblock-body span {
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    font-weight: 500 !important;
}

/* Make section headers extra bright */
.swagger-ui .opblock .opblock-section-header h4 {
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* Make ALL text super readable - nuclear option for human eyes! */
.swagger-ui * {
    color: #ffffff !important;
}

/* Override specific elements that need different colors */
.swagger-ui .opblock .opblock-summary-path {
    color: #87ceeb !important; /* Light blue for paths */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.swagger-ui .parameter__type {
    color: #87ceeb !important; /* Light blue for types */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* Make sure buttons and interactive elements are visible */
.swagger-ui .btn {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Info section */
.swagger-ui .info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.swagger-ui .info .title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.swagger-ui .info .description {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Operations */
.swagger-ui .opblock {
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.swagger-ui .opblock.opblock-get {
    border-left: 6px solid #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.swagger-ui .opblock.opblock-post {
    border-left: 6px solid #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.swagger-ui .opblock.opblock-put {
    border-left: 6px solid #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.swagger-ui .opblock.opblock-delete {
    border-left: 6px solid #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Operation headers */
.swagger-ui .opblock .opblock-summary {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.swagger-ui .opblock .opblock-summary-description {
    color: #ffffff;
    font-weight: 500;
    margin-top: 8px;
}

/* Method badges */
.swagger-ui .opblock .opblock-summary-method {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Path styling */
.swagger-ui .opblock .opblock-summary-path {
    color: #3498db;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Expandable sections */
.swagger-ui .opblock .opblock-section-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
}

.swagger-ui .opblock .opblock-section-header h4 {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

/* Parameters and responses */
.swagger-ui .opblock .opblock-body {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    color: #ffffff;
}

.swagger-ui .parameter__name {
    color: #ffffff;
    font-weight: 600;
}

.swagger-ui .parameter__type {
    color: #3498db;
    font-weight: 500;
}

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

.swagger-ui .responses-inner .response-col_status {
    font-weight: 700;
}

/* Buttons */
.swagger-ui .btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.swagger-ui .btn.execute {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.swagger-ui .btn.execute:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

/* Code blocks */
.swagger-ui .highlight-code {
    background: #2d3748;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

.swagger-ui .highlight-code pre {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Schema styling */
.swagger-ui .model-container {
    background: #f7fafc;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid #e2e8f0;
}

.swagger-ui .model-title {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Scrollbar styling */
.swagger-ui ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.swagger-ui ::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.swagger-ui ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.swagger-ui ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Loading animation */
.swagger-ui .loading-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: white;
}

/* Error styling */
.swagger-ui .errors-wrapper {
    background: #fed7d7;
    border: 1px solid #f56565;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.swagger-ui .errors-wrapper .error-wrapper {
    color: #c53030;
    font-weight: 500;
}
