/* K3 API Documentation - ObjectCode Branding */

/* ObjectCode Brand Colors */
:root {
    --objectcode-primary: #00A4DD;
    --objectcode-secondary: #ee7373;
    --objectcode-primary-light: rgba(0, 164, 221, 0.1);
    --objectcode-primary-hover: #0080b3;
    --objectcode-secondary-light: rgba(238, 115, 115, 0.1);
}

/* Hide the default Swagger header with logo and search bar */
.swagger-ui .topbar {
    display: none !important;
}

/* Hide the operation filter/search bar */
.swagger-ui .operation-filter-input {
    display: none !important;
}

/* Remove any additional header elements */
.swagger-ui .swagger-ui .topbar-wrapper {
    display: none !important;
}

/* Custom header with K3 logo */
.swagger-ui .info::before {
    content: '';
    display: block;
    width: 200px;
    height: 60px;
    background: url('/images/k3-logo.png') no-repeat center;
    background-size: contain;
    margin: 0 auto 20px auto;
}

/* Header styling with ObjectCode branding */
.swagger-ui .info {
    margin: 20px auto;
    padding: 40px 30px;
    max-width: 1200px;
    background: linear-gradient(135deg, var(--objectcode-primary-light) 0%, #f8feff 100%);
    border-left: 4px solid var(--objectcode-primary);
    box-shadow: 0 4px 16px rgba(0, 164, 221, 0.15);
    border-radius: 12px;
    text-align: center;
}

.swagger-ui .info .title {
    color: var(--objectcode-primary) !important;
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 164, 221, 0.1);
}

.swagger-ui .info .description {
    color: #4a5568 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

/* Apply ObjectCode colors to key elements */
.swagger-ui .btn.execute {
    background: linear-gradient(135deg, var(--objectcode-primary) 0%, var(--objectcode-primary-hover) 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 164, 221, 0.3) !important;
}

.swagger-ui .btn.execute:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 164, 221, 0.4) !important;
}

/* ObjectCode colors for HTTP methods */
.swagger-ui .opblock.opblock-get .opblock-summary-method {
    background: var(--objectcode-primary) !important;
    color: white !important;
}

.swagger-ui .opblock.opblock-put .opblock-summary-method,
.swagger-ui .opblock.opblock-patch .opblock-summary-method {
    background: var(--objectcode-secondary) !important;
    color: white !important;
}

/* Links and interactive elements */
.swagger-ui a,
.swagger-ui .link {
    color: var(--objectcode-primary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.swagger-ui a:hover,
.swagger-ui .link:hover {
    color: var(--objectcode-primary-hover) !important;
    text-decoration: underline !important;
}

/* Input fields with ObjectCode focus colors */
.swagger-ui input[type="text"]:focus,
.swagger-ui input[type="password"]:focus,
.swagger-ui input[type="email"]:focus,
.swagger-ui input[type="number"]:focus,
.swagger-ui textarea:focus,
.swagger-ui select:focus {
    border-color: var(--objectcode-primary) !important;
    box-shadow: 0 0 0 3px var(--objectcode-primary-light) !important;
    outline: none !important;
}

/* Section headers with ObjectCode branding */
.swagger-ui .opblock-tag {
    background: linear-gradient(135deg, var(--objectcode-primary) 0%, var(--objectcode-primary-hover) 100%) !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: 0 3px 12px rgba(0, 164, 221, 0.2) !important;
}

/* Override link styling in tag titles to make them white */
.swagger-ui .opblock-tag a,
.swagger-ui .opblock-tag a:link,
.swagger-ui .opblock-tag a:visited,
.swagger-ui .opblock-tag a:hover,
.swagger-ui .opblock-tag a:active {
    color: white !important;
    text-decoration: none !important;
}

.swagger-ui .opblock-tag a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}
