/* ==========================================
   Swagger UI - Custom Premium Enhancements
   ========================================== */

/* Badges for API status on operation lines */
.api-status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 12px;
    text-transform: uppercase;
    vertical-align: middle;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.api-status-badge.active {
    background-color: rgba(46, 204, 113, 0.12) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.api-status-badge.inactive {
    background-color: rgba(231, 76, 60, 0.12) !important;
    color: #c0392b !important;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

/* Tenant/Company badge in main info section */
.tenant-company-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeInSlide 0.3s ease-out;
}

.tenant-company-badge .company-label {
    opacity: 0.8;
    margin-right: 5px;
}

.tenant-company-badge .company-name {
    color: #2ecc71;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.2);
}

/* Status filter dropdown */
.api-status-filter-select {
    padding: 6px 32px 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff;
    color: #495057;
    margin-left: 12px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' width='8' viewBox='0 0 292.4 292.4'%3E%3Cpath fill='%23555' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 8px auto;
}

.api-status-filter-select:hover {
    border-color: #a1a1a1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.api-status-filter-select:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
