/* --- Kreller Swagger UI Professional Styling (Classic Light Theme) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
}

/* Header & Brand styling */
#header {
    background-color: #0f172a !important; /* Keep a dark header for premium contrast */
    border-bottom: 2px solid #0284c7;
    padding: 12px 0 !important;
}

#header .swagger-ui-wrap {
    max-width: 1200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#logo {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 1.5em !important;
    letter-spacing: -0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

/* Custom Welcome Banner (Light/Blue Tinted) */
.custom-welcome-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-left: 5px solid #0284c7;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.custom-welcome-banner h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #0f172a;
}

.custom-welcome-banner p {
    font-size: 1em;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.custom-welcome-banner .meta-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.85em;
    font-weight: 500;
    margin-right: 10px;
}

/* Swagger method styling tweaks */
.heading a {
    color: #0f172a !important;
    font-weight: 600 !important;
}

.resource {
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

.endpoints {
    background-color: #ffffff !important;
}

/* Parameters Table */
table.parameters thead tr th {
    color: #475569 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

table.parameters td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

input[type="text"], textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 6px !important;
}

input[type="text"]:focus, textarea:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

.footer {
    border-top: 1px solid #e2e8f0 !important;
    padding: 20px 0 !important;
    color: #64748b !important;
}

/* Fix header alignment and explorer button */
#header form#api_selector {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 0 !important;
}

#header form#api_selector .input {
    margin: 0 !important;
    padding: 0 !important;
}

#header form#api_selector .input input {
    height: 32px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    font-size: 0.9em !important;
    box-sizing: border-box !important;
}

#header form#api_selector .input a#explore {
    height: 32px !important;
    line-height: 20px !important;
    padding: 6px 16px !important;
    font-size: 0.9em !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
